| 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_WRITER_H_ | |
| 8 #define _BC_WRITER_H_ | |
| 9 class CBC_Writer; | |
| 10 class CBC_Writer : public CFX_Object | |
| 11 { | |
| 12 public: | |
| 13 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; | |
| 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); | |
| 18 virtual FX_BOOL SetModuleHeight(FX_INT32 moduleHeight); | |
| 19 virtual FX_BOOL SetModuleWidth(FX_INT32 moduleWidth); | |
| 20 virtual FX_BOOL SetHeight(FX_INT32 height); | |
| 21 virtual FX_BOOL SetWidth(FX_INT32 width); | |
| 22 virtual void SetBackgroundColor(FX_ARGB backgroundColor); | |
| 23 virtual void SetBarcodeColor(FX_ARGB foregroundColor); | |
| 24 protected: | |
| 25 CFX_DIBitmap* CreateDIBitmap(FX_INT32 width, FX_INT32 height); | |
| 26 FX_INT32 m_CharEncoding; | |
| 27 FX_INT32 m_ModuleHeight; | |
| 28 FX_INT32 m_ModuleWidth; | |
| 29 FX_INT32 m_Height; | |
| 30 FX_INT32 m_Width; | |
| 31 FXDIB_Format m_colorSpace; | |
| 32 FX_ARGB m_barColor; | |
| 33 FX_ARGB m_backgroundColor; | |
| 34 }; | |
| 35 #endif | |
| OLD | NEW |