addImage

addImage(PPImage imageSource) function

Adds a copy of an image from an another presentation.

Parameters

NameTypeDescription
imageSourcePPImageSource image.

Result

PPImage


addImage(BufferedImage image) function

Add an image to a presentation.

Parameters

NameTypeDescription
imageBufferedImageImage to add. This function converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.

Result

PPImage


addImageFromStream (ImageCollection imagecollection, ReadStream stream, Function callback) function

Add an image to a presentation from stream.

Parameters

NameTypeDescription
imagecollectionImageCollectionlink to self
streamReadStreamStream to add image from. This function can add WMF/EMF metafiles to a presentation without converting them to raster PNG image.
callbackFunctioncallback(error, result) - Callback to be called when the method has completed

Result

PPImage


addImageFromStream (ImageCollection imagecollection, ReadStream stream, int loadingStreamBehavior, Function callback) function

Creates and adds an image to a presentation from stream.

Parameters

NameTypeDescription
imagecollectionImageCollectionlink to self
streamReadStreamStream to add image file from.
loadingStreamBehaviorintThe behavior which will be applied to the stream.
callbackFunctioncallback(error, result) - Callback to be called when the method has completed

Result

PPImage


addImage(byte[] buffer) function

Adds an image to a presentation from specified buffer.

Parameters

NameTypeDescription
bufferbyte[]Buffer.

Result

PPImage


addImage(SvgImage svgImage) function

Add an image to a presentation from Svg object.

Parameters

NameTypeDescription
svgImageSvgImageSvg image object ISvgImage

Result

PPImage

Error

ErrorCondition
ArgumentNullExceptionWhen svgImage parameter is null.