|
No. 1 Bar Code SDK Provider for Java/.NET/Objective-C Professionals
|
- (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]; }
| Category | Class Properties | Default | Comments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic | pData | "" | NSString. Data matrix value to encode | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data Matrix Special |
bProcessTilde | false | BOOL.
Set the bProcessTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is false.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nDataMode | 0 | int.
Set the nDataMode property. Valid values are OB_DATAMATRIX_Auto = 0, OB_DATAMATRIX_ASCII = 1, OB_DATAMATRIX_C40 = 2, OB_DATAMATRIX_Text = 3, OB_DATAMATRIX_X12 = 4, OB_DATAMATRIX_Edifact = 5, OB_DATAMATRIX_Base256 = 6, OB_DATAMATRIX_Customer = 7
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nFormatMode | 0 | int.
Default is OBDataMatrixFormatMode.OB_DATAMATRIX_Format_10X10. Specifies the Data Matrix Format to use on that symbology. Valid values see enum OBDataMatrixFormatMode. OB_DATAMATRIX_Format_10X10 = 0, OB_DATAMATRIX_Format_12X12 = 1, OB_DATAMATRIX_Format_14X14 = 2, OB_DATAMATRIX_Format_16X16 = 3, OB_DATAMATRIX_Format_18X18 = 4, OB_DATAMATRIX_Format_20X20 = 5, OB_DATAMATRIX_Format_22X22 = 6, OB_DATAMATRIX_Format_24X24 = 7, OB_DATAMATRIX_Format_26X26 = 8, OB_DATAMATRIX_Format_32X32 = 9, OB_DATAMATRIX_Format_36X36 = 10, OB_DATAMATRIX_Format_40X40 = 11, OB_DATAMATRIX_Format_44X44 = 12, OB_DATAMATRIX_Format_48X48 = 13, OB_DATAMATRIX_Format_52X52 = 14, OB_DATAMATRIX_Format_64X64 = 15, OB_DATAMATRIX_Format_72X72 = 16, OB_DATAMATRIX_Format_80X80 = 17, OB_DATAMATRIX_Format_88X88 = 18, OB_DATAMATRIX_Format_96X96 = 19, OB_DATAMATRIX_Format_104X104 = 20, OB_DATAMATRIX_Format_120X120 = 21, OB_DATAMATRIX_Format_132X132 = 22, OB_DATAMATRIX_Format_144X144 = 23, OB_DATAMATRIX_Format_8X18 = 24, OB_DATAMATRIX_Format_8X32 = 25, OB_DATAMATRIX_Format_12X26 = 26, OB_DATAMATRIX_Format_12X36 = 27, OB_DATAMATRIX_Format_16X36 = 28, OB_DATAMATRIX_Format_16X48 = 29 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nFnc1 | - | int. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nApplicationIndicator | - | int. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| bStructuredAppend | false | BOOL. Set bStructuredAppend property to true, then Structured Append is enabled. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nSymbolCount | 0 | int. Set nSymbolCount property to the number of total symbols which make the sequence. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nSymbolIndex | 0 | int. Set nSymbolIndex property to the position of current symbol in the secuence (Start with 0). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nFileId | 0 | int. Set nFileId property to be identified to the same file. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Size Related | uom | 0 | Unit of meature for all size related setting in the library.
0: pixel; 1: cm; 2: inch. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fX | 2 | width of barcode module (narrow bar), default is 2 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 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||