Definitions for barcode.
Definitions and functions in this module are included in fs_barcode_w.h.
Module: Barcode
License Identifier: Barcode/All
Available License Right: Writing.
More...
Functions | |
FS_RESULT | FSCRT_BCModule_Initialize () |
Initialize barcode module. More... | |
FS_RESULT | FSCRT_BCModule_Finalize () |
Finalize barcode module. More... | |
FS_RESULT | FSCRT_Barcode_GenerateBitmap (const FSCRT_BSTR *info, FS_INT32 codeFormat, FS_INT32 unitWidth, FS_INT32 unitHeight, FS_INT32 qrLevel, FSCRT_BITMAP *bitmap) |
Generate a bitmap of barcode with a given information string and a specific barcode format. More... | |
Macro Definitions for Barcode formats | |
#define | FSCRT_BARCODEFORMAT_UNSPECIFIED -1 |
The format is unspecified. | |
#define | FSCRT_BARCODEFORMAT_CODE_39 0 |
The format is standard 39 code. | |
#define | FSCRT_BARCODEFORMAT_CODE_128 1 |
The format is Code128,includes EAN128 code. | |
#define | FSCRT_BARCODEFORMAT_EAN_8 2 |
The format is EAN-8 code. | |
#define | FSCRT_BARCODEFORMAT_UPC_A 3 |
The format is UPC-A code. | |
#define | FSCRT_BARCODEFORMAT_EAN_13 4 |
The format is EAN-13 code. | |
#define | FSCRT_BARCODEFORMAT_ITF 5 |
The format is ITF code. | |
#define | FSCRT_BARCODEFORMAT_PDF_417 6 |
The format is PDF-417 code. | |
#define | FSCRT_BARCODEFORMAT_QR_CODE 7 |
The format is Quick Response Code. | |
Macro Definitions for Format Error Correction Level of QR Code | |
#define | FSCRT_BARCODE_QRERRORCORRECTION_L 0 |
The capability of recovery from 7% amounts of damage. | |
#define | FSCRT_BARCODE_QRERRORCORRECTION_M 1 |
The capability of recovery from 15% amounts of damage. | |
#define | FSCRT_BARCODE_QRERRORCORRECTION_Q 2 |
The capability of recovery from 25% amounts of damage. | |
#define | FSCRT_BARCODE_QRERRORCORRECTION_H 3 |
The capability of recovery from 30% amounts of damage. | |
Definitions for barcode.
Definitions and functions in this module are included in fs_barcode_w.h.
Module: Barcode
License Identifier: Barcode/All
Available License Right: Writing.
This module contains following features:
FS_RESULT FSCRT_Barcode_GenerateBitmap | ( | const FSCRT_BSTR * | info, |
FS_INT32 | codeFormat, | ||
FS_INT32 | unitWidth, | ||
FS_INT32 | unitHeight, | ||
FS_INT32 | qrLevel, | ||
FSCRT_BITMAP * | bitmap | ||
) |
Generate a bitmap of barcode with a given information string and a specific barcode format.
[in] | info | Pointer to a FSCRT_BSTR structure that is input content used to generate a bitmap. It should be valid. |
[in] | codeFormat | Barcode format. Please refer to macro definitions FSCRT_BARCODEFORMAT_XXX and this should be one of these macros. |
[in] | unitWidth | Unit width for barcode in pixels, and preferred value is 1-5 pixels. For QR Code, use min(unitWidth, unitHeight) instead of initial values. |
[in] | unitHeight | Unit height for barcode in pixels, and preferred value is >= 20 pixels. For QR Code, use min(unitWidth, unitHeight) instead of initial values. |
[in] | qrLevel | Error correction level, required only for QR Code. It should be one of the following macro definitions: |
[out] | bitmap | Pointer to a FSCRT_BITMAP handle that receives a bitmap handle generated by this function. |
FS_RESULT FSCRT_BCModule_Finalize | ( | ) |
Finalize barcode module.
FS_RESULT FSCRT_BCModule_Initialize | ( | ) |
Initialize barcode module.
This is the first function that should be called if applications need to process barcode.