add_image method

add_image

Add an image to a presentation.

Returns

Added image.

def add_image(self, image):
    ...
ParameterTypeDescription
imageaspose.pydrawing.ImageImage to add.

Remarks

This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.

add_image

Add an image to a presentation.

Returns

Added image.

def add_image(self, image):
    ...
ParameterTypeDescription
imageIImageImage to add.

Remarks

This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.

add_image

Add an image to a presentation from stream.

Returns

Added image.

def add_image(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBaseStream to add image from.

Remarks

This method can add WMF/EMF metafiles to a presentation without converting them to raster PNG image.

add_image

Adds an image to a presentation from specified buffer.

Returns

Added image.

def add_image(self, buffer):
    ...
ParameterTypeDescription
bufferbytesBuffer.

add_image

Adds a copy of an image from an another presentation.

Returns

Added image.

def add_image(self, image_source):
    ...
ParameterTypeDescription
image_sourceIPPImageSource image.

add_image

Add an image to a presentation from SVG object.

Returns

Added image.

def add_image(self, svg_image):
    ...
ParameterTypeDescription
svg_imageISvgImageSVG image object ISvgImage

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentNullException))Thrown when svgImage parameter is None.

add_image

Creates and adds an image to a presentation from stream.

Returns

Added IPPImage.

def add_image(self, stream, loading_stream_behavior):
    ...
ParameterTypeDescription
streamio.RawIOBaseStream to add image file from.
loading_stream_behaviorLoadingStreamBehaviorThe behavior which will be applied to the stream.

See Also