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 _DIB_INT_H_ | 7 #ifndef DIB_INT_H_ |
8 #define _DIB_INT_H_ | 8 #define DIB_INT_H_ |
9 | 9 |
10 class CPDF_FixedMatrix | 10 class CPDF_FixedMatrix |
11 { | 11 { |
12 public: | 12 public: |
13 CPDF_FixedMatrix(const CFX_AffineMatrix& src, int bits) | 13 CPDF_FixedMatrix(const CFX_AffineMatrix& src, int bits) |
14 { | 14 { |
15 base = 1 << bits; | 15 base = 1 << bits; |
16 a = FXSYS_round(src.a * base); | 16 a = FXSYS_round(src.a * base); |
17 b = FXSYS_round(src.b * base); | 17 b = FXSYS_round(src.b * base); |
18 c = FXSYS_round(src.c * base); | 18 c = FXSYS_round(src.c * base); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int m_TransMethod; | 83 int m_TransMethod; |
84 int m_Flags; | 84 int m_Flags; |
85 CWeightTable m_WeightTable; | 85 CWeightTable m_WeightTable; |
86 int m_CurRow; | 86 int m_CurRow; |
87 FX_BOOL StartStretchHorz(); | 87 FX_BOOL StartStretchHorz(); |
88 FX_BOOL ContinueStretchHorz(IFX_Pause* pPause); | 88 FX_BOOL ContinueStretchHorz(IFX_Pause* pPause); |
89 void StretchVert(); | 89 void StretchVert(); |
90 int m_State; | 90 int m_State; |
91 }; | 91 }; |
92 | 92 |
93 #endif // _DIB_INT_H_ | 93 #endif // DIB_INT_H_ |
OLD | NEW |