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_WRITER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_BC_WRITER_H_ |
8 #define _BC_WRITER_H_ | 8 #define XFA_SRC_FXBARCODE_BC_WRITER_H_ |
9 class CBC_Writer; | 9 |
| 10 #include "core/include/fxcrt/fx_string.h" |
| 11 #include "core/include/fxge/fx_dib.h" |
| 12 #include "xfa/src/fxbarcode/utils.h" |
| 13 |
10 class CBC_Writer { | 14 class CBC_Writer { |
11 public: | 15 public: |
12 CBC_Writer(); | 16 CBC_Writer(); |
13 virtual ~CBC_Writer(); | 17 virtual ~CBC_Writer(); |
14 virtual uint8_t* Encode(const CFX_ByteString& contents, | 18 virtual uint8_t* Encode(const CFX_ByteString& contents, |
15 BCFORMAT format, | 19 BCFORMAT format, |
16 int32_t& outWidth, | 20 int32_t& outWidth, |
17 int32_t& outHeight, | 21 int32_t& outHeight, |
18 int32_t& e) = 0; | 22 int32_t& e) = 0; |
19 virtual uint8_t* Encode(const CFX_ByteString& contents, | 23 virtual uint8_t* Encode(const CFX_ByteString& contents, |
(...skipping 14 matching lines...) Expand all Loading... |
34 CFX_DIBitmap* CreateDIBitmap(int32_t width, int32_t height); | 38 CFX_DIBitmap* CreateDIBitmap(int32_t width, int32_t height); |
35 int32_t m_CharEncoding; | 39 int32_t m_CharEncoding; |
36 int32_t m_ModuleHeight; | 40 int32_t m_ModuleHeight; |
37 int32_t m_ModuleWidth; | 41 int32_t m_ModuleWidth; |
38 int32_t m_Height; | 42 int32_t m_Height; |
39 int32_t m_Width; | 43 int32_t m_Width; |
40 FXDIB_Format m_colorSpace; | 44 FXDIB_Format m_colorSpace; |
41 FX_ARGB m_barColor; | 45 FX_ARGB m_barColor; |
42 FX_ARGB m_backgroundColor; | 46 FX_ARGB m_backgroundColor; |
43 }; | 47 }; |
44 #endif | 48 |
| 49 #endif // XFA_SRC_FXBARCODE_BC_WRITER_H_ |
OLD | NEW |