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

Side by Side Diff: core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h

Issue 1805603002: core/include/fdpfapi cleanup Part I. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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 2016 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 CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_
8 #define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_
9
10 #include "core/include/fxcrt/fx_system.h"
11 #include "core/include/fxge/fx_dib.h"
12
13 class IPDF_OCContext;
14
15 #define RENDER_COLOR_NORMAL 0
16 #define RENDER_COLOR_GRAY 1
17 #define RENDER_COLOR_TWOCOLOR 2
18 #define RENDER_COLOR_ALPHA 3
19 #define RENDER_CLEARTYPE 0x00000001
20 #define RENDER_PRINTGRAPHICTEXT 0x00000002
21 #define RENDER_FORCE_DOWNSAMPLE 0x00000004
22 #define RENDER_PRINTPREVIEW 0x00000008
23 #define RENDER_BGR_STRIPE 0x00000010
24 #define RENDER_NO_NATIVETEXT 0x00000020
25 #define RENDER_FORCE_HALFTONE 0x00000040
26 #define RENDER_RECT_AA 0x00000080
27 #define RENDER_FILL_FULLCOVER 0x00000100
28 #define RENDER_PRINTIMAGETEXT 0x00000200
29 #define RENDER_OVERPRINT 0x00000400
30 #define RENDER_THINLINE 0x00000800
31 #define RENDER_NOTEXTSMOOTH 0x10000000
32 #define RENDER_NOPATHSMOOTH 0x20000000
33 #define RENDER_NOIMAGESMOOTH 0x40000000
34 #define RENDER_LIMITEDIMAGECACHE 0x80000000
35
36 class CPDF_RenderOptions {
37 public:
38 CPDF_RenderOptions();
39 FX_ARGB TranslateColor(FX_ARGB argb) const;
40
41 int m_ColorMode;
42 FX_COLORREF m_BackColor;
43 FX_COLORREF m_ForeColor;
44 FX_DWORD m_Flags;
45 int m_Interpolation;
46 FX_DWORD m_AddFlags;
47 IPDF_OCContext* m_pOCContext;
48 FX_DWORD m_dwLimitCacheSize;
49 int m_HalftoneLimit;
50 };
51
52 #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDEROPTIONS_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h ('k') | core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698