XImage
概述
XImage 是 Aspose.PDF FOSS for C++ 中的一个类。
XImage 通过 Width() 和 Height() 方法公开图像的像素尺寸。
该类为在 C++ 程序中使用 XImage 对象提供了 7 种方法。可用的方法包括:ContainsTransparency、GetRawImageData、Height、ImageMask、Name、Width。在安装 Aspose.PDF FOSS for C++ 包后,所有公共成员均可供任何 C++ 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
Width() → int | 在此 XImage 实例上调用 Width。 |
Height() → int | 在此 XImage 实例上调用 Height。 |
Name() → std::string | 在此 XImage 实例上调用 Name。 |
Name(value: std::string) | 在此 XImage 实例上调用 Name(value)。 |
ContainsTransparency() → bool | 在此 XImage 实例上调用 ContainsTransparency。 |
ImageMask() → bool | 在此 XImage 实例上调用 ImageMask。 |
GetRawImageData() → std::vector<std::byte> | 返回原始图像数据。 |