An
EAN-13 barcode (originally European Article Number) is a barcoding standard which is a superset of the original 12-digit Universal Product Code (UPC) system developed in the United States. The EAN-13 barcode is defined by the standards organisation GS1.
barcode library c#,
.net barcode generator library open source,
c# ean 13 barcode generator,
visual studio barcode scanner,
rdlc report print barcode,
best java barcode library
The numbers encoded in EAN-13 bar codes are product identification numbers which are called Japanese Article Number (JAN) in Japan. All the numbers encoded in UPC and EAN barcodes are known as Global Trade Item Numbers (GTIN), and they can be encoded in other GS1 barcodes.
Mac Barcode EAN13 supports:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- Create a barcode object
- Set barcode properties
- call drawWithView() method, to paint barcode on the canvas.
Sample Code:
- (void)drawRect:(CGRect)rect {
// Drawing code
OBLinear *pLinear = [OBLinear new];
[pLinear setNBarcodeType: OB_CODE128A];
[pLinear setPDataMsg: [[NSString alloc] initWithString: (@"AB")]];
//[pLinear setPSupData: [[NSString alloc] initWithString: (@"14562")]];
[pLinear setFX: USER_DEF_BAR_WIDTH];
[pLinear setFY: USER_DEF_BAR_HEIGHT];
[pLinear setFLeftMargin: (USER_DEF_LEFT_MARGIN)];
[pLinear setFRightMargin: (USER_DEF_RIGHT_MARGIN)];
[pLinear setFTopMargin: (USER_DEF_TOP_MARGIN)];
[pLinear setFBottomMargin: (USER_DEF_BOTTOM_MARGIN)];
[pLinear setNRotate: (OB_Rotate0)];
UIFont *pTextFont = [UIFont fontWithName: @"Arial" size: 8.0f];
[pLinear setPTextFont: pTextFont];
[pLinear drawWithView: (self)];
[pLinear release];
}