ImageCollection — Aspose.Slides FOSS for C++ API Reference
Properties ImageCollection 类保存演示文稿中嵌入的所有图像。.
Properties: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/image_collection.h>class ImageCollectionProperties: include/Aspose/Slides/Foss/image_collection.h
Properties
| Properties | Properties |
|---|---|
size() | 返回集合中图像的数量。. |
begin() / end() | 对基于范围的迭代器支持 for 循环。. |
图像类
Properties Image 类(来自 image.h)表示单个图像::
| Properties | Properties |
|---|---|
size() | 返回图像尺寸。. |
width() | 图像宽度(像素)。. |
height() | 图像高度(像素)。. |
data() | 返回原始图像数据。. |
save(const std::string& path) | 将图像保存到文件。. |
Images 工厂
Properties Images 类(来自 images.h)提供静态工厂方法::
| Properties | Properties |
|---|---|
from_file(const std::string& path) | 从文件加载图像。. |
from_stream(std::istream& stream) | 从流加载图像。. |
IPPImage
Properties IPPImage 类表示演示文稿包中的图像::
| Properties | Properties |
|---|---|
binary_data() | 原始二进制图像数据。. |
image() | 返回 Image 对象。. |
width() | 图像宽度。. |
height() | 图像高度。. |
x() / y() | 位置偏移。. |
replace_image(...) | 替换图像数据。. |