ImageCollection — Aspose.Slides FOSS for C++ API Reference

The ImageCollection class holds all images embedded in a presentation.

Namespace: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/image_collection.h>
class ImageCollection

Header: include/Aspose/Slides/Foss/image_collection.h


Methods

MethodDescription
size()Returns the number of images in the collection.
begin() / end()Iterator support for range-based for loops.

Image Class

The Image class (from image.h) represents a single image:

MethodDescription
size()Returns the image dimensions.
width()Image width in pixels.
height()Image height in pixels.
data()Returns the raw image data.
save(const std::string& path)Save the image to a file.

Images Factory

The Images class (from images.h) provides static factory methods:

MethodDescription
from_file(const std::string& path)Load an image from a file.
from_stream(std::istream& stream)Load an image from a stream.

IPPImage

The IPPImage class represents an image within the presentation package:

PropertyDescription
binary_data()Raw binary image data.
image()Returns the Image object.
width()Image width.
height()Image height.
x() / y()Position offsets.
replace_image(...)Replace the image data.

See Also