IImageCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IImageCollection extends IGenericCollection<IPPImage>

Represents collection of PPImage.

Methods

MethodDescription
get_Item(int index)Returns image by its index.
addImage(Bitmap 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:

ParameterTypeDescription
indexintIndex.

Returns: IPPImage - Image.

addImage(Bitmap image)

public abstract IPPImage addImage(Bitmap image)

Add an image to a presentation.

Parameters:

ParameterTypeDescription
imageandroid.graphics.BitmapImage 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:

ParameterTypeDescription
streamjava.io.InputStreamStream 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:

ParameterTypeDescription
streamjava.io.InputStreamStream to add image file from.
loadingStreamBehaviorintThe 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:

ParameterTypeDescription
bufferbyte[]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:

ParameterTypeDescription
imageSourceIPPImageSource image.

Returns: IPPImage - Added image.

addImage(ISvgImage svgImage)

public abstract IPPImage addImage(ISvgImage svgImage)

Add an image to a presentation from SVG object.

Parameters:

ParameterTypeDescription
svgImageISvgImageSVG image object ISvgImage

Returns: IPPImage - Added image.