Foxit PDF SDK
|
Instance Methods | |
(FSBitmap *) | - generateBitmap:format:unit_width:unit_height:level: |
Generate a barcode bitmap with a given information string and specified barcode format. More... | |
(id) | - init |
Constructor. | |
(id) | - initWithOther: |
Constructor, with another barcode object. More... | |
(BOOL) | - isEmpty |
Check whether current object is empty or not. More... | |
This class can be used to generate barcode bitmap.
- (FSBitmap *) generateBitmap: | (NSString *) | info | |
format: | (FSBarcodeFormat) | format | |
unit_width: | (int) | unit_width | |
unit_height: | (int) | unit_height | |
level: | (FSBarcodeQRErrorCorrectionLevel) | level | |
Generate a barcode bitmap with a given information string and specified barcode format.
[in] | info | Information string to be encoded to barcode bitmap. It should not be an empty string. |
[in] | format | Barcode format which is used to encode information string. Please refer to values starting from FSBarcodeFormatCode39 and this should be one of these values. |
[in] | unit_width | Unit width for barcode, in pixels. Valid values: from 1 to 5. If input value is below 1, 1 will be used by default; if input value is above 5, 5 will be used by default. Specially, for PDF-417 and QR Code, the minimum value of unit_width and unit_height will be used as unit width (compared with valid value range) and unit height will be ignored. |
[in] | unit_height | Unit height for barcode, in pixels. Valid values: equal to or above 20. If input value is below 20, 20 will be used by default. Specially, for PDF-417 and QR Code, the minimum value of unit_width and unit_height will be used as unit width (compared with valid value range) and unit height will be ignored. |
[in] | level | (Required only for QR Code) Error correction level. Please refer to values starting from FSBarcodeQRCorrectionLevelLow and this should be one of these values. |
- (id) initWithOther: | (FSBarcode*) | other |
Constructor, with another barcode object.
[in] | other | Another barcode object. |
- (BOOL) isEmpty |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.