OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_ |
8 #define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_ | 8 #define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #define RENDER_OVERPRINT 0x00000400 | 29 #define RENDER_OVERPRINT 0x00000400 |
30 #define RENDER_THINLINE 0x00000800 | 30 #define RENDER_THINLINE 0x00000800 |
31 #define RENDER_NOTEXTSMOOTH 0x10000000 | 31 #define RENDER_NOTEXTSMOOTH 0x10000000 |
32 #define RENDER_NOPATHSMOOTH 0x20000000 | 32 #define RENDER_NOPATHSMOOTH 0x20000000 |
33 #define RENDER_NOIMAGESMOOTH 0x40000000 | 33 #define RENDER_NOIMAGESMOOTH 0x40000000 |
34 #define RENDER_LIMITEDIMAGECACHE 0x80000000 | 34 #define RENDER_LIMITEDIMAGECACHE 0x80000000 |
35 | 35 |
36 class CPDF_RenderOptions { | 36 class CPDF_RenderOptions { |
37 public: | 37 public: |
38 CPDF_RenderOptions(); | 38 CPDF_RenderOptions(); |
| 39 CPDF_RenderOptions(const CPDF_RenderOptions& rhs); |
39 FX_ARGB TranslateColor(FX_ARGB argb) const; | 40 FX_ARGB TranslateColor(FX_ARGB argb) const; |
40 | 41 |
41 int m_ColorMode; | 42 int m_ColorMode; |
42 FX_COLORREF m_BackColor; | 43 FX_COLORREF m_BackColor; |
43 FX_COLORREF m_ForeColor; | 44 FX_COLORREF m_ForeColor; |
44 uint32_t m_Flags; | 45 uint32_t m_Flags; |
45 int m_Interpolation; | 46 int m_Interpolation; |
46 uint32_t m_AddFlags; | 47 uint32_t m_AddFlags; |
47 CPDF_OCContext* m_pOCContext; | 48 CPDF_OCContext* m_pOCContext; |
48 uint32_t m_dwLimitCacheSize; | 49 uint32_t m_dwLimitCacheSize; |
49 int m_HalftoneLimit; | 50 int m_HalftoneLimit; |
| 51 bool m_bDrawAnnots; |
50 }; | 52 }; |
51 | 53 |
52 #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_ | 54 #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_ |
OLD | NEW |