Image
Overview
Image is a class in Aspose.Slides FOSS for C++.
Represents a raster or vector image backed by in-memory data.
This class provides 7 methods for working with Image objects in C++ programs.
Available methods include: content_type, data, height, save, size, width.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
size() → Drawing::Size | Gets the size of the image in pixels. |
width() → int | Gets the width of the image in pixels. |
height() → int | Gets the height of the image in pixels. |
save(filename: std::string_view) | Saves the image to a file. |
save(stream: std::ostream) | Saves the image to a file. |
data() → std::span<const std::uint8_t> | Returns a read-only view of the raw image data. |
content_type() → std::string | Returns the MIME content type of the image. |