Foxit PDF SDK

fs_ofdimageobject.h
1 #ifndef FS_OFD_IMAGEOBJECT_H_
2 #define FS_OFD_IMAGEOBJECT_H_
3
4 #include "common/fs_common.h"
5 #include "fs_ofdgraphicsobject.h"
6
12 namespace foxit {
16 namespace ofd {
20 namespace graphics {
22 class OFDImageObject FS_FINAL : public OFDGraphicsObject {
23 public:
29 explicit OFDImageObject(OFDGraphicsObject object);
30
32 ~OFDImageObject();
33
39 OFDImageObject(const OFDImageObject& other);
40
48 OFDImageObject& operator = (const OFDImageObject& other);
49
57 bool operator == (const OFDImageObject& other) const;
58
66 bool operator != (const OFDImageObject& other) const;
67
75 bool IsEmpty() const;
76
82 String GetImageBuffer() const;
83
93 foxit::uint32 SetImage(const void* buffer, size_t size, foxit::common::Image::Type format);
94
102 foxit::uint32 SetImage(const String& file_path);
103
111 foxit::uint32 SetImage(const WString& file_path);
112
120 void SetImage(foxit::uint32 resource_id);
121
128 foxit::common::Image::Type GetImageFormat() const;
129
130 explicit OFDImageObject(FS_HANDLE handle);
131 };
132
133 } // namespace objects
134 } // namespace ofd
135 } // namespace foxit
136
137 #endif // FS_OFD_IMAGEOBJECT_H_
foxit::ofd::graphics::OFDGraphicsObject
Definition: fs_ofdgraphicsobject.h:177
foxit::ofd::graphics::OFDImageObject::IsEmpty
bool IsEmpty() const
检查当前对象是否为空。
CFX_WideString
宽字符串类
Definition: fx_string.h:1457
foxit::ofd::graphics::OFDImageObject::GetImageBuffer
String GetImageBuffer() const
获取图像对象中的图像数据。
foxit::ofd::graphics::OFDImageObject::GetImageFormat
foxit::common::Image::Type GetImageFormat() const
获取图像对象格式。
foxit::ofd::graphics::OFDImageObject::operator=
OFDImageObject & operator=(const OFDImageObject &other)
赋值操作符。
foxit::uint32
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:195
foxit::FS_HANDLE
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
fs_common.h
通用定义和类的头文件。
foxit::ofd::graphics::OFDImageObject::operator==
bool operator==(const OFDImageObject &other) const
相等操作符。
foxit::ofd::graphics::OFDImageObject
Definition: fs_ofdimageobject.h:22
foxit::ofd::graphics::OFDImageObject::operator !=
bool operator !=(const OFDImageObject &other) const
不相等操作符。
foxit::common::Image::Type
Type
图像类型的枚举。
Definition: fs_image.h:457
foxit::ofd::graphics::OFDImageObject::SetImage
foxit::uint32 SetImage(const void *buffer, size_t size, foxit::common::Image::Type format)
通过内存缓冲区设置图像对象中的图像数据。
foxit
Foxit命名空间。
Definition: fs_taggedpdf.h:27
CFX_ByteString
字节字符串类
Definition: fx_string.h:317
foxit::ofd::graphics::OFDImageObject::OFDImageObject
OFDImageObject(OFDGraphicsObject object)
构造函数，从现有foxit::ofd::graphics::OFDGraphicsObject对象。
foxit::ofd::graphics::OFDImageObject::~OFDImageObject
~OFDImageObject()
析构函数。