| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _BC_CODEBASE_H_ | 7 #ifndef _BC_CODEBASE_H_ |
| 8 #define _BC_CODEBASE_H_ | 8 #define _BC_CODEBASE_H_ |
| 9 void BC_Library_Init(); | 9 void BC_Library_Init(); |
| 10 void BC_Library_Destory(); | 10 void BC_Library_Destory(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 BC_QR_CODE, | 35 BC_QR_CODE, |
| 36 BC_PDF417, | 36 BC_PDF417, |
| 37 BC_DATAMATRIX | 37 BC_DATAMATRIX |
| 38 }; | 38 }; |
| 39 class CBC_CodeBase | 39 class CBC_CodeBase |
| 40 { | 40 { |
| 41 public: | 41 public: |
| 42 CBC_CodeBase(); | 42 CBC_CodeBase(); |
| 43 virtual ~CBC_CodeBase(); | 43 virtual ~CBC_CodeBase(); |
| 44 virtual BC_TYPE GetType() = 0; | 44 virtual BC_TYPE GetType() = 0; |
| 45 virtual FX_BOOL Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e) = 0
; | 45 virtual FX_BOOL Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &e) = 0; |
| 46 virtual FX_BOOL» RenderDevice(CFX_RenderDevice* device, const CFX_Matrix
* matirx, FX_INT32 &e) = 0; | 46 virtual FX_BOOL» RenderDevice(CFX_RenderDevice* device, const CFX_Matrix
* matirx, int32_t &e) = 0; |
| 47 virtual FX_BOOL» RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32 &e) =
0; | 47 virtual FX_BOOL» RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t &e) = 0
; |
| 48 virtual CFX_WideString Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight,
FX_INT32 &e) = 0; | 48 virtual CFX_WideString Decode(uint8_t* buf, int32_t width, int32_t hight, in
t32_t &e) = 0; |
| 49 virtual CFX_WideString Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e) = 0; | 49 virtual CFX_WideString Decode(CFX_DIBitmap *pBitmap, int32_t &e) = 0; |
| 50 | 50 |
| 51 virtual FX_BOOL SetCharEncoding(FX_INT32 encoding); | 51 virtual FX_BOOL SetCharEncoding(int32_t encoding); |
| 52 virtual FX_BOOL SetModuleHeight(FX_INT32 moduleHeight); | 52 virtual FX_BOOL SetModuleHeight(int32_t moduleHeight); |
| 53 virtual FX_BOOL SetModuleWidth(FX_INT32 moduleWidth); | 53 virtual FX_BOOL SetModuleWidth(int32_t moduleWidth); |
| 54 | 54 |
| 55 virtual FX_BOOL SetHeight(FX_INT32 height); | 55 virtual FX_BOOL SetHeight(int32_t height); |
| 56 virtual FX_BOOL SetWidth(FX_INT32 width); | 56 virtual FX_BOOL SetWidth(int32_t width); |
| 57 virtual void SetBackgroundColor(FX_ARGB backgroundColor); | 57 virtual void SetBackgroundColor(FX_ARGB backgroundColor); |
| 58 virtual void SetBarcodeColor(FX_ARGB foregroundColor); | 58 virtual void SetBarcodeColor(FX_ARGB foregroundColor); |
| 59 protected: | 59 protected: |
| 60 CBC_Writer * m_pBCWriter; | 60 CBC_Writer * m_pBCWriter; |
| 61 CBC_Reader * m_pBCReader; | 61 CBC_Reader * m_pBCReader; |
| 62 }; | 62 }; |
| 63 class CBC_OneCode : public CBC_CodeBase | 63 class CBC_OneCode : public CBC_CodeBase |
| 64 { | 64 { |
| 65 public: | 65 public: |
| 66 CBC_OneCode(); | 66 CBC_OneCode(); |
| 67 virtual ~CBC_OneCode(); | 67 virtual ~CBC_OneCode(); |
| 68 virtual BC_TYPE GetType() = 0; | 68 virtual BC_TYPE GetType() = 0; |
| 69 virtual FX_BOOL Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e) = 0
; | 69 virtual FX_BOOL Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &e) = 0; |
| 70 virtual FX_BOOL» RenderDevice(CFX_RenderDevice* device, const CFX_Matrix
* matirx, FX_INT32 &e) = 0; | 70 virtual FX_BOOL» RenderDevice(CFX_RenderDevice* device, const CFX_Matrix
* matirx, int32_t &e) = 0; |
| 71 virtual FX_BOOL» RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32 &e) =
0; | 71 virtual FX_BOOL» RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t &e) = 0
; |
| 72 virtual CFX_WideString Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight,
FX_INT32 &e) = 0; | 72 virtual CFX_WideString Decode(uint8_t* buf, int32_t width, int32_t hight, in
t32_t &e) = 0; |
| 73 virtual CFX_WideString Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e) = 0; | 73 virtual CFX_WideString Decode(CFX_DIBitmap *pBitmap, int32_t &e) = 0; |
| 74 virtual FX_BOOL CheckContentValidity(FX_WSTR contents); | 74 virtual FX_BOOL CheckContentValidity(FX_WSTR contents); |
| 75 virtual CFX_WideString FilterContents(FX_WSTR contents); | 75 virtual CFX_WideString FilterContents(FX_WSTR contents); |
| 76 virtual void SetPrintChecksum(FX_BOOL checksum); | 76 virtual void SetPrintChecksum(FX_BOOL checksum); |
| 77 virtual void» » » SetDataLength(FX_INT32 length); | 77 virtual void» » » SetDataLength(int32_t length); |
| 78 virtual void SetCalChecksum(FX_BOOL calc); | 78 virtual void SetCalChecksum(FX_BOOL calc); |
| 79 virtual FX_BOOL SetFont(CFX_Font * cFont); | 79 virtual FX_BOOL SetFont(CFX_Font * cFont); |
| 80 virtual void SetFontSize(FX_FLOAT size); | 80 virtual void SetFontSize(FX_FLOAT size); |
| 81 virtual void» » » SetFontStyle(FX_INT32 style); | 81 virtual void» » » SetFontStyle(int32_t style); |
| 82 virtual void SetFontColor(FX_ARGB color); | 82 virtual void SetFontColor(FX_ARGB color); |
| 83 }; | 83 }; |
| 84 class CBC_Code39 : public CBC_OneCode | 84 class CBC_Code39 : public CBC_OneCode |
| 85 { | 85 { |
| 86 public: | 86 public: |
| 87 CBC_Code39(); | 87 CBC_Code39(); |
| 88 CBC_Code39(FX_BOOL usingCheckDigit); | 88 CBC_Code39(FX_BOOL usingCheckDigit); |
| 89 CBC_Code39(FX_BOOL usingCheckDigit, FX_BOOL extendedMode); | 89 CBC_Code39(FX_BOOL usingCheckDigit, FX_BOOL extendedMode); |
| 90 virtual ~CBC_Code39(); | 90 virtual ~CBC_Code39(); |
| 91 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e); | 91 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &e); |
| 92 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 92 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 93 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 93 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 94 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 94 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 95 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 95 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 96 BC_TYPE GetType() | 96 BC_TYPE GetType() |
| 97 { | 97 { |
| 98 return BC_CODE39; | 98 return BC_CODE39; |
| 99 } | 99 } |
| 100 FX_BOOL SetTextLocation(BC_TEXT_LOC location); | 100 FX_BOOL SetTextLocation(BC_TEXT_LOC location); |
| 101 FX_BOOL» » » SetWideNarrowRatio(FX_INT32 ratio); | 101 FX_BOOL» » » SetWideNarrowRatio(int32_t ratio); |
| 102 private: | 102 private: |
| 103 CFX_WideString m_renderContents; | 103 CFX_WideString m_renderContents; |
| 104 }; | 104 }; |
| 105 class CBC_Codabar : public CBC_OneCode | 105 class CBC_Codabar : public CBC_OneCode |
| 106 { | 106 { |
| 107 public: | 107 public: |
| 108 CBC_Codabar(); | 108 CBC_Codabar(); |
| 109 virtual ~CBC_Codabar(); | 109 virtual ~CBC_Codabar(); |
| 110 FX_BOOL» » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32
&e); | 110 FX_BOOL» » Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &
e); |
| 111 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 111 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 112 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 112 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 113 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 113 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 114 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 114 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 115 BC_TYPE GetType() | 115 BC_TYPE GetType() |
| 116 { | 116 { |
| 117 return BC_CODABAR; | 117 return BC_CODABAR; |
| 118 } | 118 } |
| 119 FX_BOOL SetStartChar(FX_CHAR start); | 119 FX_BOOL SetStartChar(FX_CHAR start); |
| 120 FX_BOOL SetEndChar(FX_CHAR end); | 120 FX_BOOL SetEndChar(FX_CHAR end); |
| 121 FX_BOOL SetTextLocation(BC_TEXT_LOC location); | 121 FX_BOOL SetTextLocation(BC_TEXT_LOC location); |
| 122 FX_BOOL» » » SetWideNarrowRatio(FX_INT32 ratio); | 122 FX_BOOL» » » SetWideNarrowRatio(int32_t ratio); |
| 123 private: | 123 private: |
| 124 CFX_WideString m_renderContents; | 124 CFX_WideString m_renderContents; |
| 125 }; | 125 }; |
| 126 class CBC_Code128 : public CBC_OneCode | 126 class CBC_Code128 : public CBC_OneCode |
| 127 { | 127 { |
| 128 private: | 128 private: |
| 129 BC_TYPE m_type; | 129 BC_TYPE m_type; |
| 130 public: | 130 public: |
| 131 CBC_Code128(BC_TYPE type); | 131 CBC_Code128(BC_TYPE type); |
| 132 virtual ~CBC_Code128(); | 132 virtual ~CBC_Code128(); |
| 133 FX_BOOL» » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_IN
T32 &e); | 133 FX_BOOL» » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32
_t &e); |
| 134 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 134 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 135 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 135 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 136 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 136 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 137 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 137 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 138 BC_TYPE GetType() | 138 BC_TYPE GetType() |
| 139 { | 139 { |
| 140 return BC_CODE128; | 140 return BC_CODE128; |
| 141 } | 141 } |
| 142 FX_BOOL SetTextLocation(BC_TEXT_LOC loction); | 142 FX_BOOL SetTextLocation(BC_TEXT_LOC loction); |
| 143 private: | 143 private: |
| 144 CFX_WideString m_renderContents; | 144 CFX_WideString m_renderContents; |
| 145 }; | 145 }; |
| 146 class CBC_EAN8 : public CBC_OneCode | 146 class CBC_EAN8 : public CBC_OneCode |
| 147 { | 147 { |
| 148 public: | 148 public: |
| 149 CBC_EAN8(); | 149 CBC_EAN8(); |
| 150 virtual ~CBC_EAN8(); | 150 virtual ~CBC_EAN8(); |
| 151 FX_BOOL» » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_IN
T32 &e); | 151 FX_BOOL» » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32
_t &e); |
| 152 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 152 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 153 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 153 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 154 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 154 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 155 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 155 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 156 BC_TYPE GetType() | 156 BC_TYPE GetType() |
| 157 { | 157 { |
| 158 return BC_EAN8; | 158 return BC_EAN8; |
| 159 } | 159 } |
| 160 private: | 160 private: |
| 161 CFX_WideString Preprocess(FX_WSTR contents); | 161 CFX_WideString Preprocess(FX_WSTR contents); |
| 162 CFX_WideString m_renderContents; | 162 CFX_WideString m_renderContents; |
| 163 }; | 163 }; |
| 164 class CBC_EAN13 : public CBC_OneCode | 164 class CBC_EAN13 : public CBC_OneCode |
| 165 { | 165 { |
| 166 public: | 166 public: |
| 167 CBC_EAN13(); | 167 CBC_EAN13(); |
| 168 virtual ~CBC_EAN13(); | 168 virtual ~CBC_EAN13(); |
| 169 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e); | 169 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &e); |
| 170 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 170 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 171 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 171 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 172 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 172 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 173 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 173 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 174 BC_TYPE GetType() | 174 BC_TYPE GetType() |
| 175 { | 175 { |
| 176 return BC_EAN13; | 176 return BC_EAN13; |
| 177 } | 177 } |
| 178 private: | 178 private: |
| 179 CFX_WideString Preprocess(FX_WSTR contents); | 179 CFX_WideString Preprocess(FX_WSTR contents); |
| 180 CFX_WideString m_renderContents; | 180 CFX_WideString m_renderContents; |
| 181 }; | 181 }; |
| 182 class CBC_UPCA : public CBC_OneCode | 182 class CBC_UPCA : public CBC_OneCode |
| 183 { | 183 { |
| 184 public: | 184 public: |
| 185 CBC_UPCA(); | 185 CBC_UPCA(); |
| 186 virtual ~CBC_UPCA(); | 186 virtual ~CBC_UPCA(); |
| 187 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e); | 187 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &e); |
| 188 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 188 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 189 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 189 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 190 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 190 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 191 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 191 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 192 BC_TYPE GetType() | 192 BC_TYPE GetType() |
| 193 { | 193 { |
| 194 return BC_UPCA; | 194 return BC_UPCA; |
| 195 } | 195 } |
| 196 private: | 196 private: |
| 197 CFX_WideString Preprocess(FX_WSTR contents); | 197 CFX_WideString Preprocess(FX_WSTR contents); |
| 198 CFX_WideString m_renderContents; | 198 CFX_WideString m_renderContents; |
| 199 }; | 199 }; |
| 200 class CBC_QRCode : public CBC_CodeBase | 200 class CBC_QRCode : public CBC_CodeBase |
| 201 { | 201 { |
| 202 public: | 202 public: |
| 203 CBC_QRCode(); | 203 CBC_QRCode(); |
| 204 virtual ~CBC_QRCode(); | 204 virtual ~CBC_QRCode(); |
| 205 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e); | 205 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &e); |
| 206 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 206 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 207 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 207 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 208 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 208 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 209 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 209 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 210 BC_TYPE GetType() | 210 BC_TYPE GetType() |
| 211 { | 211 { |
| 212 return BC_QR_CODE; | 212 return BC_QR_CODE; |
| 213 } | 213 } |
| 214 FX_BOOL» » SetVersion(FX_INT32 version); | 214 FX_BOOL» » SetVersion(int32_t version); |
| 215 FX_BOOL» » SetErrorCorrectionLevel (FX_INT32 level); | 215 FX_BOOL» » SetErrorCorrectionLevel (int32_t level); |
| 216 }; | 216 }; |
| 217 class CBC_PDF417I : public CBC_CodeBase | 217 class CBC_PDF417I : public CBC_CodeBase |
| 218 { | 218 { |
| 219 public: | 219 public: |
| 220 CBC_PDF417I(); | 220 CBC_PDF417I(); |
| 221 virtual ~CBC_PDF417I(); | 221 virtual ~CBC_PDF417I(); |
| 222 FX_BOOL» » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_IN
T32 &e); | 222 FX_BOOL» » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32
_t &e); |
| 223 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 223 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 224 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 224 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 225 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 225 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 226 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 226 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 227 BC_TYPE GetType() | 227 BC_TYPE GetType() |
| 228 { | 228 { |
| 229 return BC_PDF417; | 229 return BC_PDF417; |
| 230 } | 230 } |
| 231 FX_BOOL» » SetErrorCorrectionLevel (FX_INT32 level); | 231 FX_BOOL» » SetErrorCorrectionLevel (int32_t level); |
| 232 void SetTruncated(FX_BOOL truncated); | 232 void SetTruncated(FX_BOOL truncated); |
| 233 }; | 233 }; |
| 234 class CBC_DataMatrix : public CBC_CodeBase | 234 class CBC_DataMatrix : public CBC_CodeBase |
| 235 { | 235 { |
| 236 public: | 236 public: |
| 237 CBC_DataMatrix(); | 237 CBC_DataMatrix(); |
| 238 virtual ~CBC_DataMatrix(); | 238 virtual ~CBC_DataMatrix(); |
| 239 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e); | 239 FX_BOOL » » Encode(FX_WSTR contents, FX_BOOL isDevice, int32_t &e); |
| 240 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 240 FX_BOOL» » » RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, int32_t &e); |
| 241 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 241 FX_BOOL» » » RenderBitmap(CFX_DIBitmap *&pOutBitmap, int32_t
&e); |
| 242 CFX_WideString» Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 242 CFX_WideString» Decode(uint8_t* buf, int32_t width, int32_t hight, int32
_t &e); |
| 243 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 243 CFX_WideString» Decode(CFX_DIBitmap *pBitmap, int32_t &e); |
| 244 BC_TYPE GetType() | 244 BC_TYPE GetType() |
| 245 { | 245 { |
| 246 return BC_DATAMATRIX; | 246 return BC_DATAMATRIX; |
| 247 } | 247 } |
| 248 }; | 248 }; |
| 249 #endif | 249 #endif |
| OLD | NEW |