PictureFrame
概述
PictureFrame 是 Aspose.Slides 为 C++ 提供的 FOSS 中的一个类。
表示包含图像的相框形状。
该类在 C++ 程序中提供了 20 个用于操作 PictureFrame 对象的方法。可用的方法包括:PPImage、PictureFillFormat、PictureFrame、clear_pending_part_name、ensure_picture_format、is_cameo、pending_part_name、picture_format、picture_frame_lock、pp_image、relative_scale_height、relative_scale_width,以及另外 4 个方法。安装 Aspose.Slides FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:PPImage、PictureFillFormat。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
PPImage | PPImage | 读取 | 获取 pp 图像。 |
PictureFillFormat | PictureFillFormat | 读取 | 获取图片填充格式。 |
方法
| 签名 | 描述 |
|---|---|
PPImage() → PPImage | 属性提供对帧底层 PPImage 的访问 |
PictureFillFormat() → PictureFillFormat | 返回定义图片填充设置的 PictureFillFormat |
PictureFillFormat() → PictureFillFormat | |
PictureFillFormat() → PictureFillFormat | |
PictureFrame() | |
PictureFrame(type: ShapeType, x: double, y: double, w: double, h: double, image: PPImage) | |
pp_image() → PPImage | 返回与此图片框关联的图像。 |
set_pp_image(image: PPImage) | 设置与此图片框关联的图像。 |
picture_format() → PictureFillFormat | 返回此图片框的PictureFillFormat,或 nullptr。 |
picture_format() → PictureFillFormat | 返回此图片框的PictureFillFormat,或 nullptr。 |
ensure_picture_format() → PictureFillFormat | 启用并返回用于编辑的图片格式。 |
picture_frame_lock() → std::nullptr_t | 返回形状的图片框锁。尚未实现。 |
relative_scale_height() → double | 返回相对于原始图片尺寸的高度比例。数值 1.0 对应 100%。 |
set_relative_scale_height(value: double) | 设置相对于原始图片大小的高度比例。 |
relative_scale_width() → double | 返回相对于原始图片大小的宽度比例。值 1.0 对应 100%。 |
set_relative_scale_width(value: double) | 设置相对于原始图片尺寸的宽度比例。 |
is_cameo() → bool | 确定此 PictureFrame 是否为 Cameo 对象。始终为 false。 |
pending_part_name() → std::string | 返回延迟图像解析的待处理部件名称。 |
set_pending_part_name(value: std::string) | 设置待定部件名称,以进行延迟图像解析。 |
clear_pending_part_name() | 清除待处理的部件名称。 |