Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / BC_BinaryBitmap.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _BC_BINARYBITMAP_H_\r
8 #define _BC_BINARYBITMAP_H_\r
9 class CBC_Binarizer;\r
10 class CBC_CommonBitMatrix;\r
11 class CBC_CommonBitArray;\r
12 class CBC_BinaryBitmap;\r
13 class CBC_BinaryBitmap : public CFX_Object\r
14 {\r
15 public:\r
16     CBC_BinaryBitmap(CBC_Binarizer *binarizer);\r
17     virtual ~CBC_BinaryBitmap();\r
18     FX_INT32                            GetWidth();\r
19     FX_INT32                            GetHeight();\r
20     CBC_CommonBitMatrix *       GetMatrix(FX_INT32 &e);\r
21     CBC_CommonBitArray *        GetBlackRow(FX_INT32 y, CBC_CommonBitArray *row, FX_INT32 &e);\r
22     CBC_CommonBitMatrix *       GetBlackMatrix(FX_INT32 &e);\r
23     FX_BOOL                                     IsCropSupported();\r
24     FX_BOOL                                     IsRotateSupported();\r
25 private:\r
26     CBC_Binarizer *                     m_binarizer;\r
27     CBC_CommonBitMatrix *       m_matrix;\r
28 };\r
29 #endif\r