Foxit PDF SDK

fs_ofdrenderer.h
1 #if (defined(_WIN32) || defined(_WIN64))|| defined(__linux__)
2
16 #ifndef FS_OFDRENDERER_H_
17 #define FS_OFDRENDERER_H_
18
19 #include "common/fs_common.h"
20 #include "common/fs_image.h"
21 #include "fs_ofdpage.h"
22
28 namespace foxit {
32 namespace addon {
36 namespace ofd {
43 class OFDRenderer FS_FINAL : public Base{
44 public:
50 typedef enum _ColorMode {
52 e_ColorModeNormal = 0,
54 e_ColorModeMappingGray = 1,
56 e_ColorModeMapping = 2
57 } ColorMode;
58
64 typedef enum _ContentFlag {
66 e_ContentFlagAllContent = 0x00,
68 e_ContentFlagPage = 0x01,
70 e_ContentFlagAnnot = 0x02,
72 e_ContentFlagHighLightAnnots = 0x04,
74 e_ContentFlagStampAnnots = 0x08
75 } ContentFlag;
76
77
81 OFDRenderer() {}
82
88 OFDRenderer(const common::Bitmap & bitmap);
94 OFDRenderer(const OFDRenderer& other);
95
97 ~OFDRenderer();
98
106 OFDRenderer& operator = (const OFDRenderer& other);
114 bool operator == (const OFDRenderer& other) const;
122 bool operator != (const OFDRenderer& other) const;
123
131 bool IsEmpty() const;
132
142 void SetColorMode(ColorMode color_mode);
143
153 void SetContentFlag(uint32 content_flag);
154
168 common::Progressive StartRender(const OFDPage& page, const Matrix& matrix);
169 };
170
171 }//namespace ofd
172 }//namespace addon
173 }//namespace foxit
174 #endif // FS_OFDRENDERER_H_
175 #endif // (defined(_WIN32) || defined(_WIN64)) || (defined(__linux__) && defined(__x86_64__) && !defined(__ANDROID__))
fs_common.h
Header file for common definitions and classes.
operator==
bool operator==(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are equal.
Definition: fs_basictypes.h:128
foxit
Foxit namespace.
Definition: fs_taggedpdf.h:27
fs_image.h
Header file for image and bitmap related definitions and classes.
operator!=
bool operator!=(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are not equal.
Definition: fs_basictypes.h:140
foxit::uint32
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:195
foxit::Matrix
CFX_Matrix Matrix
Matrix information, in float.
Definition: fs_basictypes.h:469