IPPImage
概述
IPPImage 是 Aspose.Slides FOSS 中用于 .NET 的类。
表示存储在 OPC 包部件中的演示文稿嵌入图像。
此类提供 3 种方法来处理 .NET 程序中的 IPPImage 对象。可用的方法包括:ReplaceImage。在安装 Aspose.Slides FOSS 用于 .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:BinaryData、ContentType、Height、Image、Width、X,以及另 1 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
BinaryData | byte[] | 读取 | 获取图像数据的副本,作为字节数组。 |
Image | IImage | 读取 | 获取图像的副本,作为 IImage 实例。 |
ContentType | string | 读取 | 获取图像的 MIME 内容类型。 |
Width | int | 读取 | 获取图像宽度(以像素为单位)。 |
Height | int | 读取 | 获取图像的像素高度。 |
X | int | 读取 | 获取图像的 X 偏移量。 |
Y | int | 读取 | 获取图像的 Y 偏移量。 |
方法
| 签名 | 描述 |
|---|---|
ReplaceImage(newImageData: byte[]) | 用指定的原始字节数据替换此图像。 |
ReplaceImage(newImage: IImage) | 用指定的 IImage 中的数据替换此图像。 |
ReplaceImage(newImage: IPPImage) | 将此图像替换为来自另一个 IPPImage 的数据。 |