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 _BC_WRITER_H_ |
8 #define _BC_WRITER_H_ | 8 #define _BC_WRITER_H_ |
9 class CBC_Writer; | 9 class CBC_Writer; |
10 class CBC_Writer : public CFX_Object | 10 class CBC_Writer |
11 { | 11 { |
12 public: | 12 public: |
13 CBC_Writer(); | 13 CBC_Writer(); |
14 virtual ~CBC_Writer(); | 14 virtual ~CBC_Writer(); |
15 virtual FX_BYTE *Encode(const CFX_ByteString &contents, BCFORMAT
format, FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 &e) = 0; | 15 virtual FX_BYTE *Encode(const CFX_ByteString &contents, BCFORMAT
format, FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 &e) = 0; |
16 virtual FX_BYTE *Encode(const CFX_ByteString &contents, BCFORMAT
format, FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 hints, FX_INT32 &e) =
0; | 16 virtual FX_BYTE *Encode(const CFX_ByteString &contents, BCFORMAT
format, FX_INT32 &outWidth, FX_INT32 &outHeight, FX_INT32 hints, FX_INT32 &e) =
0; |
17 virtual FX_BOOL SetCharEncoding(FX_INT32 encoding); | 17 virtual FX_BOOL SetCharEncoding(FX_INT32 encoding); |
18 virtual FX_BOOL SetModuleHeight(FX_INT32 moduleHeight); | 18 virtual FX_BOOL SetModuleHeight(FX_INT32 moduleHeight); |
19 virtual FX_BOOL SetModuleWidth(FX_INT32 moduleWidth); | 19 virtual FX_BOOL SetModuleWidth(FX_INT32 moduleWidth); |
20 virtual FX_BOOL SetHeight(FX_INT32 height); | 20 virtual FX_BOOL SetHeight(FX_INT32 height); |
21 virtual FX_BOOL SetWidth(FX_INT32 width); | 21 virtual FX_BOOL SetWidth(FX_INT32 width); |
22 virtual void SetBackgroundColor(FX_ARGB backgroundColor); | 22 virtual void SetBackgroundColor(FX_ARGB backgroundColor); |
23 virtual void SetBarcodeColor(FX_ARGB foregroundColor); | 23 virtual void SetBarcodeColor(FX_ARGB foregroundColor); |
24 protected: | 24 protected: |
25 CFX_DIBitmap* CreateDIBitmap(FX_INT32 width, FX_INT32 height); | 25 CFX_DIBitmap* CreateDIBitmap(FX_INT32 width, FX_INT32 height); |
26 FX_INT32 m_CharEncoding; | 26 FX_INT32 m_CharEncoding; |
27 FX_INT32 m_ModuleHeight; | 27 FX_INT32 m_ModuleHeight; |
28 FX_INT32 m_ModuleWidth; | 28 FX_INT32 m_ModuleWidth; |
29 FX_INT32 m_Height; | 29 FX_INT32 m_Height; |
30 FX_INT32 m_Width; | 30 FX_INT32 m_Width; |
31 FXDIB_Format m_colorSpace; | 31 FXDIB_Format m_colorSpace; |
32 FX_ARGB m_barColor; | 32 FX_ARGB m_barColor; |
33 FX_ARGB m_backgroundColor; | 33 FX_ARGB m_backgroundColor; |
34 }; | 34 }; |
35 #endif | 35 #endif |
OLD | NEW |