|
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 | nBarcodeType | OB_CODE39 (4) | OBBarcodeType. Barcode type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pDataMsg | "" | NSString. Barcode data value to encode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| bAddCheckSum | true | BOOL. AddCheckSum property is optional. Modulo 43 will be applied, if addCheckSum property is true. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Code 39 Special |
extension | false | If you want to encode any 128 ASCII characters, extension must be true. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fI | 1.0 | The space between 2 characters in code 39; This a multiple of X; The default is 1.; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fN | 2.0 | Wide/narrow ratio, 2.0 - 3.0 inclusive, default is 2. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| bShowStartStopInText | true | If true, display a * in the beginning and end of barcode text | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||