iPhone UPC-E Generator generate, create barcode UPC-E images in iPhone (iOS) application
Generate & Print UPC-E barcode images in iPhone (iOS) Application
- Fast create linear and 2D barcodes in iOS apps.
- Source code is provided to build with iOS SDK that best fits for your application.
- Easy to integrate the barcode generation functionality into your developmental iPhone projects
- Completely written in Objective-C
- Mac OS X 10.6 and greater are required
- Compatible with Xcode 3.2 and above
- Compatible with iOS 3.2 and above version, and works with iPhone 6,iPhone 5, iPhone 4S, iPhone 4, iPhone 3GS, etc
- All barcodes are compatible with the latest barcode symbologies ISO standard
- All the functionality of barcode type control is implemented in a single, small file
Index
iPhone UPC-E Barcode Generator Introduction
iPhone UPC-E Generator SDK is a UPC-E generator component designed for iOS project developers who need add UPC-E creation features into their developmental applications for iPhone.
- UPC-E generation support on desktops as well as servers
- Generate UPC-E on iPhone client apps, without communicating with a server
- Complete iPhone UPC-E Generator Guide provided with iPhone UPC-E generation demo project
generate barcode image using java,
barcode in ms excel,
print barcode in crystal report vb.net,
barcode scanner in c# windows application,
c# code 39 barcode,
qr code size in c#
Barcode UPC-E is also known as Universal
Product Code version E, UPC-E Supplement 5/Five-digit Add-On, UPC-E Supplement
2/Two-digit Add-On, UPC-E+5, UPC-E+2, UPC-E0, E0, UPC-E1, E1, GTIN-12 with lead
"0", GS1-12, UCC-12
UPC-E Valid Data Scope
iPhone UPC-E Generation SDK supports:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
How to generate barcode in Objective-C?
- 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];
}
iPhone UPC-E Generator - Barcode Properties
Category |
Class Properties |
Default |
Comments |
Basic |
nBarcodeType |
OB_UPCE (39) |
OBBarcodeType. Barcode type.
OB_UPCE = 39,
OB_UPCE_2 = 40,
OB_UPCE_5 = 41.
|
pDataMsg |
"" |
NSString. Barcode data value to encode. Valid barcode data size is 6 digits (do not input first & last digits). |
bAddCheckSum |
true |
BOOL. AddCheckSum property is not applied here. iPhone Barcode will always add a check character in the last digit (modulo 10). |
|
UPC/EAN Related |
pSupData |
"" |
NSString. Set the sData property with the supplementary data to encode. |
fSupHeight |
0.8 |
float. This is a multiplicator of the height of the code; The default is 0.8 (80%). |
fSupSpace |
0 |
float. The separation between the barcode and the supplement |
|
Size Related |
uom |
0 |
Unit of meature for all size related setting in the library.
0: pixel; 1: cm; 2: inch.
|
fX |
1 |
width of barcode module (narrow bar), default is 1 pixel |
fY |
30 |
barcode module height, default is 30 pixel |
fBarcodeWidth |
0 |
generted barcode image width |
fBarcodeHeight |
0 |
generted barcode image height |
fLeftMargin |
0 |
image left margin |
fRightMargin |
0 |
image right margin |
fTopMargin |
0 |
image top margin |
fBottomMargin |
0 |
image bottom margin |
nResolution |
72 |
in DPI |
nRotate |
0 |
OBRotate. Valid values:
OB_Rotate0 = 0,
OB_Rotate90 = 1,
OB_Rotate180 = 2,
OB_Rotate270 = 3
|
|
Text & Color |
bShowText |
true |
If true, display barcode data text, otherwise do not display. |
bShowCheckSumChar |
true |
If true, display the check sum character in the end of data, if there is a check sum. |
pTextFont |
Arial, Plain, 11 |
NSFont - Barcode text font style |
fTextMargin |
6 |
Space between barcode and barcode data text, default is 6 pixel |
iPhone Barcode Generator Supporting Barcode Types