PictureFillFormat

PictureFillFormat

概述

PictureFillFormat 是 Aspose.Slides 为 C++ 提供的 FOSS 中的一个类。

表示填充格式中的图片填充。

该类提供 54 个用于在 C++ 程序中操作 PictureFillFormat 对象的方法。可用的方法包括:PPImage、Picture、PictureFillMode、RectangleAlignment、TileFlip、crop_bottom、crop_left、crop_right、crop_top、dpi、ensure_tile、get_blip,以及另外 40 个方法。安装 Aspose.Slides 为 C++ 提供的 FOSS 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:PPImage、Picture、PictureFillMode、RectangleAlignment、TileFlip。

属性

名称类型访问描述
PictureFillModePictureFillMode读取获取图片填充模式。
PicturePicture读取获取图片。
RectangleAlignmentRectangleAlignment读取获取矩形对齐方式。
TileFlipTileFlip读取获取平铺翻转。
PPImagePPImage读取获取 pp 图像。

方法

签名描述
PictureFillMode() → PictureFillMode属性获取或设置图片填充模式
Picture() → Picture属性获取或设置 Picture 对象
Picture() → Picture
RectangleAlignment() → RectangleAlignment返回图片在其矩形内的对齐方式
TileFlip() → TileFlip返回图片填充的平铺翻转设置
PPImage() → PPImage返回底层的 PPImage 表示
init_internal(blip_fill_element: pugi::xml_node, save_callback: std::function<void()>)初始化基于 XML 的图片填充格式。
get_blip() → pugi::xml_node获取子元素。
get_or_create_src_rect() → pugi::xml_node获取或创建用于裁剪值的元素。
get_stretch() → pugi::xml_node获取子元素。
get_or_create_fill_rect() → pugi::xml_node获取或创建位于 . 下的元素.
get_crop_value(attr: std::string_view) → floatGet a crop value from .
set_crop_value(attr: std::string_view, value: float)在 . 上设置裁剪值。
get_stretch_offset(attr: std::string_view) → float获取下方的拉伸偏移值。
set_stretch_offset(attr: std::string_view, value: float)在 under 上设置拉伸偏移值。
get_tile() → pugi::xml_node获取元素,如果不存在则返回空节点。
ensure_tile() → pugi::xml_node获取或创建该元素,如已存在则将其移除。
save()通过保存回调保存更改。
dpi() → int返回或设置用于填充图片的 DPI。
set_dpi(value: int)
picture_fill_mode() → PictureFillMode返回图片填充模式。
set_picture_fill_mode(value: PictureFillMode)
picture() → Picture返回与填充关联的图片。
picture() → Picture返回与填充关联的图片。
crop_left() → float返回或设置从左侧裁剪掉的真实图像宽度的百分比数值。
set_crop_left(value: float)
crop_top() → float返回或设置从顶部裁剪的真实图像高度的百分比。
set_crop_top(value: float)
crop_right() → float返回或设置实际图像宽度从右侧裁剪的百分比。
set_crop_right(value: float)
crop_bottom() → float返回或设置实际图像高度从底部裁剪的百分比。
set_crop_bottom(value: float)
stretch_offset_left() → float返回或设置左边缘拉伸偏移量,单位为百分比。
set_stretch_offset_left(value: float)
stretch_offset_top() → float返回或设置顶部边缘拉伸偏移量,单位为百分比。
set_stretch_offset_top(value: float)
stretch_offset_right() → float返回或设置右边缘拉伸偏移量,单位为百分比。
set_stretch_offset_right(value: float)
stretch_offset_bottom() → float返回或设置底部边缘拉伸偏移量(以百分比表示)。
set_stretch_offset_bottom(value: float)
tile_offset_x() → float返回或设置纹理的水平偏移量(单位为点)。
set_tile_offset_x(value: float)
tile_offset_y() → float返回或设置纹理的垂直偏移量(单位为点)。
set_tile_offset_y(value: float)
tile_scale_x() → float返回或设置纹理填充的水平缩放比例,单位为百分比。
set_tile_scale_x(value: float)
tile_scale_y() → float返回或设置纹理填充的垂直缩放比例,单位为百分比。
set_tile_scale_y(value: float)
tile_alignment() → RectangleAlignment返回或设置纹理瓦片对齐方式。
set_tile_alignment(value: RectangleAlignment)
tile_flip() → TileFlip返回或设置纹理瓦片翻转模式。
set_tile_flip(value: TileFlip)
image() → PPImage返回用于图片填充的图像。
set_image(img: PPImage)

另请参阅

 中文