Foxit PDF SDK
|
Public Member Functions | |
Barcode () | |
Constructor. | |
Barcode (Barcode other) | |
Constructor, with another barcode object. More... | |
Bitmap | generateBitmap (String info, int format, int unit_width, int unit_height, int level) throws com.foxit.sdk.PDFException |
Generate a barcode bitmap with a given information string and specified barcode format. More... | |
boolean | isEmpty () |
Check whether current object is empty or not. More... | |
Static Public Attributes | |
static final int | e_FormatCode128 = 1 |
Barcode format: Code128, including EAN128 code. | |
static final int | e_FormatCode39 = 0 |
Barcode format: standard 39 code. | |
static final int | e_FormatEAN13 = 4 |
Barcode format: EAN-13 code. | |
static final int | e_FormatEAN8 = 2 |
Barcode format: EAN-8 code. | |
static final int | e_FormatITF = 5 |
Barcode format: ITF code. | |
static final int | e_FormatPDF417 = 6 |
Barcode format: PDF-417 code. | |
static final int | e_FormatQRCode = 7 |
Barcode format: Quick Response Code. | |
static final int | e_FormatUPCA = 3 |
Barcode format: UPC-A code. | |
static final int | e_QRCorrectionLevelHigh = 3 |
The capability of recovery from 30% amounts of damage. | |
static final int | e_QRCorrectionLevelLow = 0 |
The capability of recovery from 7% amounts of damage. | |
static final int | e_QRCorrectionLevelMedium = 1 |
The capability of recovery from 15% amounts of damage. | |
static final int | e_QRCorrectionLevelQuater = 2 |
The capability of recovery from 25% amounts of damage. | |
This class can be used to generate barcode bitmap.
com.foxit.sdk.common.Barcode.Barcode | ( | Barcode | other | ) |
Constructor, with another barcode object.
[in] | other | Another barcode object. |
Bitmap com.foxit.sdk.common.Barcode.generateBitmap | ( | String | info, |
int | format, | ||
int | unit_width, | ||
int | unit_height, | ||
int | level | ||
) | throws com.foxit.sdk.PDFException |
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 com.foxit.sdk.common.Barcode.e_FormatCode39 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 com.foxit.sdk.common.Barcode.e_QRCorrectionLevelLow and this should be one of these values. |
boolean com.foxit.sdk.common.Barcode.isEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.