addImage

addImage(PPImage imageSource) method

Adds a copy of an image from an another presentation.

Parameters

NameTypeDescription
imageSourcePPImageSource image.

Returns

PPImage


addImage(BufferedImage image) method

Add an image to a presentation.

Parameters

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

Returns

PPImage


addImage(InputStream stream) method

Add an image to a presentation from stream.

Parameters

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

Returns

PPImage


addImage(InputStream stream, int loadingStreamBehavior) method

Creates and adds an image to a presentation from stream.

Parameters

NameTypeDescription
streamInputStreamStream to add image file from.
loadingStreamBehaviorintThe behavior which will be applied to the stream.

Returns

PPImage


addImage(byte[] buffer) method

Adds an image to a presentation from specified buffer.

Parameters

NameTypeDescription
bufferbyte[]Buffer.

Returns

PPImage


addImage(SvgImage svgImage) method

Add an image to a presentation from Svg object.

Parameters

NameTypeDescription
svgImageSvgImageSvg image object ISvgImage

Returns

PPImage

Exception

ExceptionCondition
ArgumentNullExceptionWhen svgImage parameter is null.