Foxit PDF SDK
fs_barcode.h
Go to the documentation of this file.
1 
16 #ifndef FS_BARCODE_H_
17 #define FS_BARCODE_H_
18 
19 #include "fs_common.h"
20 #include "fs_image.h"
21 
27 namespace foxit {
31 namespace common {
33 class Barcode FS_FINAL : public Base {
34  public:
40  typedef enum _Format {
57  } Format;
58 
64  typedef enum _QRErrorCorrectionLevel {
74 
76  Barcode();
77  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
78  explicit Barcode(FS_HANDLE handle);
79 
81  ~Barcode();
87  Barcode(const Barcode& other);
95  Barcode& operator = (const Barcode& other);
96 
104  bool operator == (const Barcode& other) const;
112  bool operator != (const Barcode& other) const;
113 
121  bool IsEmpty() const;
122 
145  common::Bitmap GenerateBitmap(const WString& info, Format format, int32 unit_width, int32 unit_height,
146  QRErrorCorrectionLevel level);
147 };
148 } // namespace common
149 } // namespace foxit
150 
151 #endif // FS_BARCODE_H_
The capability of recovery from 7% amounts of damage.
Definition: fs_barcode.h:66
Barcode format: ITF code.
Definition: fs_barcode.h:52
common::Bitmap GenerateBitmap(const WString &info, Format format, int32 unit_width, int32 unit_height, QRErrorCorrectionLevel level)
Generate a barcode bitmap with a given information string and specified barcode format.
The capability of recovery from 30% amounts of damage.
Definition: fs_barcode.h:72
Barcode format: Code128, including EAN128 code.
Definition: fs_barcode.h:44
Definition: fs_image.h:36
Barcode format: standard 39 code.
Definition: fs_barcode.h:42
The capability of recovery from 15% amounts of damage.
Definition: fs_barcode.h:68
Barcode format: UPC-A code.
Definition: fs_barcode.h:48
WIDE STRING CLASS.
Definition: fx_string.h:1452
The capability of recovery from 25% amounts of damage.
Definition: fs_barcode.h:70
Header file for image and bitmap related definitions and classes.
Barcode format: EAN-13 code.
Definition: fs_barcode.h:50
Barcode & operator=(const Barcode &other)
Assign operator.
QRErrorCorrectionLevel
Enumeration for format error correction level of QR Code.
Definition: fs_barcode.h:64
bool operator==(const Barcode &other) const
Equal operator.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
Barcode format: Quick Response Code.
Definition: fs_barcode.h:56
Header file for common definitions and classes.
bool IsEmpty() const
Check whether current object is empty or not.
FX_INT32 int32
32-bit signed integer.
Definition: fs_basictypes.h:194
Definition: fs_basictypes.h:397
Foxit namespace.
Definition: fs_compare.h:27
bool operator !=(const Barcode &other) const
Not equal operator.
Barcode format: PDF-417 code.
Definition: fs_barcode.h:54
Barcode format: EAN-8 code.
Definition: fs_barcode.h:46
Definition: fs_barcode.h:33
Format
Enumeration for barcode format.
Definition: fs_barcode.h:40
Barcode()
Constructor.