fs_barcode_w.h
Go to the documentation of this file.
1 
24 #ifndef _FSCRT_BARCODE_W_H_
25 #define _FSCRT_BARCODE_W_H_
26 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
53 /*******************************************************************************/
54 /* Barcode module */
55 /*******************************************************************************/
80 
102 
103 /*******************************************************************************/
104 /* Barcode formats */
105 /*******************************************************************************/
106 #ifndef _FSCRT_DEF_MACRO_BARCODEFORMAT_
107 #define _FSCRT_DEF_MACRO_BARCODEFORMAT_
108 
114 #define FSCRT_BARCODEFORMAT_UNSPECIFIED -1
115 
116 #define FSCRT_BARCODEFORMAT_CODE_39 0
117 
118 #define FSCRT_BARCODEFORMAT_CODE_128 1
119 
120 #define FSCRT_BARCODEFORMAT_EAN_8 2
121 
122 #define FSCRT_BARCODEFORMAT_UPC_A 3
123 
124 #define FSCRT_BARCODEFORMAT_EAN_13 4
125 
126 #define FSCRT_BARCODEFORMAT_ITF 5
127 
128 #define FSCRT_BARCODEFORMAT_PDF_417 6
129 
130 #define FSCRT_BARCODEFORMAT_QR_CODE 7
131 
133 #endif /* _FSCRT_DEF_MACRO_BARCODEFORMAT_ */
134 
135 /*******************************************************************************/
136 /* Barcode QR format correction levels */
137 /*******************************************************************************/
138 #ifndef _FSCRT_DEF_MACRO_BARCODE_QRERRORCORRECTION_
139 #define _FSCRT_DEF_MACRO_BARCODE_QRERRORCORRECTION_
140 
146 #define FSCRT_BARCODE_QRERRORCORRECTION_L 0
147 
148 #define FSCRT_BARCODE_QRERRORCORRECTION_M 1
149 
150 #define FSCRT_BARCODE_QRERRORCORRECTION_Q 2
151 
152 #define FSCRT_BARCODE_QRERRORCORRECTION_H 3
153 
155 #endif /* _FSCRT_DEF_MACRO_BARCODE_QRERRORCORRECTION_ */
156 
157 /*******************************************************************************/
158 /* Barcode encoding */
159 /*******************************************************************************/
201 FS_RESULT FSCRT_Barcode_GenerateBitmap(const FSCRT_BSTR* info, FS_INT32 codeFormat, FS_INT32 unitWidth, FS_INT32 unitHeight, FS_INT32 qrLevel, FSCRT_BITMAP* bitmap);
202 
203 #ifdef __cplusplus
204 };
205 #endif
206  /* group FSBARCODE */
208 
209 #endif/* _FSCRT_BARCODE_W_H_ */
210 
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...
FS_RESULT FSCRT_BCModule_Finalize()
Finalize barcode module.
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
FS_RESULT FSCRT_BCModule_Initialize()
Initialize barcode module.
Structure for byte string.
Definition: fs_base_r.h:611
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160

Foxit Corporation