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
| Name | Type | Access | Description |
|---|---|---|---|
size | `` | Read | Gets the size of the image. |
width | int | Read | Gets the width of the image in pixels. |
height | int | Read | Gets the height of the image in pixels. |
Methods
| Signature | Description |
|---|---|
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. |