PPImage

Overview

PPImage is a class in Aspose.Slides FOSS for Python. Inherits from: IPPImage.

Represents an image in a presentation.

This class declares 2 methods for PPImage objects in Python programs. Available methods include: replace_image. Public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package. Properties: binary_data, content_type, height, image, width, x, and 1 more.

Properties

NameTypeAccessDescription
binary_datalist[int]ReadReturns the copy of an image’s data.
imageIImageReadReturns the copy of an image.
content_typestrReadReturns a MIME type of an image, encoded in .
widthintReadReturns a width of an image.
heightintReadReturns a height of an image.
xintReadReturns a X-offset of an image.
yintReadReturns a Y-offset of an image.

Methods

SignatureDescription
replace_image()` replaces the underlying image bytes of a picture in the presentation
replace_image(new_image_data)Calls replace_image(new_image_data) on this PPImage instance.

See Also

 English