BitmapInfo
概述
BitmapInfo 是 Aspose.PDF FOSS for C++ 中的一个类。
BitmapInfo 能够创建具有指定像素格式、宽度、高度和像素数据的原始位图图像,支持在无需外部依赖的情况下进行图像处理。
此类提供 6 个方法,用于在 C++ 程序中处理 BitmapInfo 对象。可用的方法包括:BitmapInfo、Format、Height、PixelBytes、PixelFormat、Width。在安装 Aspose.PDF FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。访问器方法:PixelFormat。
访问器方法
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
PixelFormat | PixelFormat | 读取 | 获取像素格式。 |
方法
| 签名 | 描述 |
|---|---|
PixelFormat() → PixelFormat | 在此 BitmapInfo 实例上调用 PixelFormat。 |
BitmapInfo(pixelBytes: std::vector<std::uint8_t>, width: int, height: int, format: PixelFormat) | 在此 BitmapInfo 实例上调用 BitmapInfo(pixelBytes, width, height, format)。 |
PixelBytes() → std::vector<std::uint8_t> | 在此 BitmapInfo 实例上调用 PixelBytes。 |
Width() → int | 对该 BitmapInfo 实例调用 Width。 |
Height() → int | 对该 BitmapInfo 实例调用 Height。 |
Format() → PixelFormat | 对该 BitmapInfo 实例调用 Format。 |