OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_ | |
8 #define XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_ | |
9 | |
10 #include "core/include/fxge/fx_ge.h" | |
11 #include "xfa/src/fxbarcode/BC_Writer.h" | |
12 | |
13 class CBC_CommonBitMatrix; | |
14 | |
15 class CBC_TwoDimWriter : public CBC_Writer { | |
16 public: | |
17 CBC_TwoDimWriter(); | |
18 virtual ~CBC_TwoDimWriter(); | |
19 virtual void RenderResult(uint8_t* code, | |
20 int32_t codeWidth, | |
21 int32_t codeHeight, | |
22 int32_t& e); | |
23 virtual void RenderBitmapResult(CFX_DIBitmap*& pOutBitmap, int32_t& e); | |
24 virtual void RenderDeviceResult(CFX_RenderDevice* device, | |
25 const CFX_Matrix* matrix); | |
26 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0; | |
27 virtual int32_t GetErrorCorrectionLevel() { return m_iCorrectLevel; } | |
28 | |
29 protected: | |
30 int32_t m_iCorrectLevel; | |
31 FX_BOOL m_bFixedSize; | |
32 CBC_CommonBitMatrix* m_output; | |
33 }; | |
34 | |
35 #endif // XFA_SRC_FXBARCODE_BC_TWODIMWRITER_H_ | |
OLD | NEW |