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
Equal operator.
Definition: fs_image.h:36
ColorMode
Enumeration for rendering color mode.
Definition: fs_ofdrenderer.h:50
Header file for OFD page related classes and methods.
Definition: fs_ofdpage.h:41
bool operator !=(const OFDRenderer &other) const
Not equal operator.
void SetContentFlag(uint32 content_flag)
Set the content flag.
Header file for image and bitmap related definitions and classes.
bool IsEmpty() const
Check whether current object is empty or not.
If set, highlight annotations will be rendered.
Definition: fs_ofdrenderer.h:72
If set, annotations will be rendered.(Excluding highlight annotation and stamp)
Definition: fs_ofdrenderer.h:70
common::Progressive StartRender(const OFDPage &page, const Matrix &matrix)
Start to render an OFD page.
ContentFlag
Enumeration for OFD rendering content flags.
Definition: fs_ofdrenderer.h:64
Definition: fs_common.h:373
void SetColorMode(ColorMode color_mode)
Set the color mode.
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:196
Header file for common definitions and classes.
Definition: fs_basictypes.h:443
Foxit namespace.
Definition: fs_taggedpdf.h:27
Definition: fs_ofdrenderer.h:43
If set, stamp annotations will be rendered.
Definition: fs_ofdrenderer.h:74
Definition: fx_coordinates.h:1076
If set, all content will be rendered. This value should be used alone.
Definition: fs_ofdrenderer.h:66
If set, page content will be rendered.
Definition: fs_ofdrenderer.h:68
OFDRenderer()
Constructor.
Definition: fs_ofdrenderer.h:81
Normal color mode.
Definition: fs_ofdrenderer.h:52
Map a color value to the color range defined by a background color and a foreground color.
Definition: fs_ofdrenderer.h:56
Map gray/white/black color value to background/foreground; for other colors, no change.
Definition: fs_ofdrenderer.h:54
OFDRenderer & operator=(const OFDRenderer &other)
Assign operator.