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 {
57  } ColorMode;
58 
64  typedef enum _ContentFlag {
75  } ContentFlag;
76 
77 
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__))
bool operator==(const OFDRenderer &other) const
等于操作符。
Definition: fs_image.h:36
ColorMode
渲染颜色模式的枚举。
Definition: fs_ofdrenderer.h:50
OFD页面相关类和方法的头文件。
Definition: fs_ofdpage.h:41
bool operator !=(const OFDRenderer &other) const
不等于操作符。
void SetContentFlag(uint32 content_flag)
设置内容标志。
图像和位图相关定义和类的头文件。
bool IsEmpty() const
检查当前对象是否为空。
如果设置,将渲染高亮注释。
Definition: fs_ofdrenderer.h:72
如果设置,将渲染注释。(不包括高亮注释和印章)
Definition: fs_ofdrenderer.h:70
common::Progressive StartRender(const OFDPage &page, const Matrix &matrix)
开始渲染OFD页面。
ContentFlag
OFD渲染内容标志的枚举。
Definition: fs_ofdrenderer.h:64
Definition: fs_common.h:373
void SetColorMode(ColorMode color_mode)
设置颜色模式。
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:196
通用定义和类的头文件。
Definition: fs_basictypes.h:449
Foxit命名空间。
Definition: fs_taggedpdf.h:27
Definition: fs_ofdrenderer.h:43
如果设置,将渲染印章注释。
Definition: fs_ofdrenderer.h:74
Definition: fx_coordinates.h:1076
如果设置,将渲染所有内容。此值应单独使用。
Definition: fs_ofdrenderer.h:66
如果设置,将渲染页面内容。
Definition: fs_ofdrenderer.h:68
OFDRenderer()
构造函数。
Definition: fs_ofdrenderer.h:81
正常颜色模式。
Definition: fs_ofdrenderer.h:52
将颜色值映射到由背景色和前景色定义的颜色范围。
Definition: fs_ofdrenderer.h:56
将灰色/白色/黑色值映射到背景/前景;对于其他颜色,不作更改。
Definition: fs_ofdrenderer.h:54
OFDRenderer & operator=(const OFDRenderer &other)
赋值操作符。