Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: xfa/src/fxbarcode/src/include/BC_Writer.h

Issue 842043002: Organize barcode codes into modules. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/src/include/BC_WhiteRectangleDetector.h ('k') | xfa/src/fxbarcode/src/include/BC_X12Encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698