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
通用定义和类的头文件。
operator==
bool operator==(const char *str1, const CFX_ByteString &str2)
检查两个字节字符串是否相等。
Definition: fs_basictypes.h:128
foxit
Foxit命名空间。
Definition: fs_taggedpdf.h:27
fs_image.h
图像和位图相关定义和类的头文件。
operator!=
bool operator!=(const char *str1, const CFX_ByteString &str2)
检查两个字节字符串是否不相等。
Definition: fs_basictypes.h:140
foxit::uint32
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:196
foxit::Matrix
CFX_Matrix Matrix
矩阵信息，浮点型。
Definition: fs_basictypes.h:467