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 _BC_TWODIMWRITER_H_ | |
8 #define _BC_TWODIMWRITER_H_ | |
9 #include "BC_Writer.h" | |
10 class CBC_Writer; | |
11 class CBC_CommonBitMatrix; | |
12 class CBC_TwoDimWriter; | |
13 class CBC_TwoDimWriter : public CBC_Writer | |
14 { | |
15 public: | |
16 CBC_TwoDimWriter(); | |
17 virtual ~CBC_TwoDimWriter(); | |
18 virtual FX_BYTE* Encode(const CFX_WideString& contents, FX_INT32 ecLevel,
FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 &e) | |
19 { | |
20 return NULL; | |
21 }; | |
22 virtual FX_BYTE* Encode(const CFX_ByteString& contents, BCFORMAT format,
FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 hints, FX_INT32 &e) | |
23 { | |
24 return NULL; | |
25 }; | |
26 virtual FX_BYTE* Encode(const CFX_ByteString& contents, BCFORMAT format,
FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 &e) | |
27 { | |
28 return NULL; | |
29 }; | |
30 virtual void RenderResult(FX_BYTE *code, FX_INT32 codeWidth,
FX_INT32 codeHeight, FX_INT32 &e); | |
31 virtual void RenderBitmapResult(CFX_DIBitmap *&pOutBitmap, FX_INT32&
e); | |
32 virtual void RenderDeviceResult(CFX_RenderDevice* device, const CFX_M
atrix* matrix); | |
33 virtual FX_BOOL SetErrorCorrectionLevel (FX_INT32 level) = 0; | |
34 virtual FX_INT32 GetErrorCorrectionLevel() | |
35 { | |
36 return m_iCorrectLevel; | |
37 }; | |
38 | |
39 protected: | |
40 FX_INT32 m_iCorrectLevel; | |
41 FX_BOOL m_bFixedSize; | |
42 CBC_CommonBitMatrix* m_output; | |
43 }; | |
44 #endif | |
OLD | NEW |