Image

Overview

Image is a class in Aspose.Slides FOSS for Python. Inherits from: IImage.

Represents a raster or vector image.

This class declares 6 methods for Image objects in Python programs. Available methods include: __enter__, __exit__, save. Public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package. Properties: height, size, width.

Properties

NameTypeAccessDescription
size``ReadGets the size of the image.
widthintReadGets the width of the image in pixels.
heightintReadGets the height of the image in pixels.

Methods

SignatureDescription
save()Saves the image to its default destination or stream
__enter__()Calls enter on this Image instance.
__exit__(exc_type, exc_val, exc_tb)Calls exit(exc_type, exc_val, exc_tb) on this Image instance.
save(filename)Calls save(filename) on this Image instance.
save(filename, format)Calls save(filename, format) on this Image instance.
save(filename, format, quality)Calls save(filename, format, quality) on this Image instance.

See Also

 English