IImageCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IImageCollection extends IGenericCollection<IPPImage>

Represents collection of PPImage.

Methods

Method Description
get_Item(int index) Returns image by its index.
addImage(BufferedImage image) Add an image to a presentation.
addImage(InputStream stream) Add an image to a presentation from stream.
addImage(InputStream stream, int loadingStreamBehavior) Creates and adds an image to a presentation from stream.
addImage(byte[] buffer) Adds an image to a presentation from specified buffer.
addImage(IPPImage imageSource) Adds a copy of an image from an another presentation.
addImage(ISvgImage svgImage) Add an image to a presentation from SVG object.

get_Item(int index)

public abstract IPPImage get_Item(int index)

Returns image by its index.

Parameters:

Parameter Type Description
index int Index.

Returns: IPPImage - Image.

addImage(BufferedImage image)

public abstract IPPImage addImage(BufferedImage image)

Add an image to a presentation.

Parameters:

Parameter Type Description
image java.awt.image.BufferedImage Image to add.

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

Returns: IPPImage - Added image.

addImage(InputStream stream)

public abstract IPPImage addImage(InputStream stream)

Add an image to a presentation from stream.

Parameters:

Parameter Type Description
stream java.io.InputStream Stream to add image from.

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

Returns: IPPImage - Added image.

addImage(InputStream stream, int loadingStreamBehavior)

public abstract IPPImage addImage(InputStream stream, int loadingStreamBehavior)

Creates and adds an image to a presentation from stream.

Parameters:

Parameter Type Description
stream java.io.InputStream Stream to add image file from.
loadingStreamBehavior int The behavior which will be applied to the stream.

Returns: IPPImage - Added IPPImage.

addImage(byte[] buffer)

public abstract IPPImage addImage(byte[] buffer)

Adds an image to a presentation from specified buffer.

Parameters:

Parameter Type Description
buffer byte[] Buffer.

Returns: IPPImage - Added image.

addImage(IPPImage imageSource)

public abstract IPPImage addImage(IPPImage imageSource)

Adds a copy of an image from an another presentation.

Parameters:

Parameter Type Description
imageSource IPPImage Source image.

Returns: IPPImage - Added image.

addImage(ISvgImage svgImage)

public abstract IPPImage addImage(ISvgImage svgImage)

Add an image to a presentation from SVG object.

Parameters:

Parameter Type Description
svgImage ISvgImage SVG image object ISvgImage

Returns: IPPImage - Added image.