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

SignatureDescription
size()Drawing::SizeGets the size of the image in pixels.
width()intGets the width of the image in pixels.
height()intGets 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::stringReturns the MIME content type of the image.

See Also