PPImage — Aspose.Slides FOSS C++ API Reference
PPImage — Represents an image stored in a presentation.
Package: Aspose::Slides
Methods
| Method | Returns | Description |
|---|---|---|
init_internal() | void | Internal initialization with OPC package reference. |
binary_data() | std::vector<std::uint8_t> | Returns a copy of the image’s binary data. |
image() | std::unique_ptr<IImage> | Returns a copy of the image as an IImage. |
width() | int | Returns the width of the image in pixels. |
height() | int | Returns the height of the image in pixels. |
x() | int | Returns the X-offset of the image (always 0). |
y() | int | Returns the Y-offset of the image (always 0). |
replace_image() | void | Replaces the image data with new raw bytes. |
raw_data() | std::span<const std::uint8_t> | Returns a read-only view of the raw image data. |
set_part_name() | void | Sets the internal part name used for PPTX relationship tracking. |