PPImage

PPImage class

Represents an image in a presentation.

dispose

NameDescription
dispose ()Disposes object.

Returns: void


getBinaryData

NameDescription
getBinaryData ()Returns the copy of an image’s data. Read-only byte[].

Returns: byte


getContentType

NameDescription
getContentType ()Returns a MIME type of an image, encoded in BinaryData( #getBinaryData). Read-only String.

Returns: String


getHeight

NameDescription
getHeight ()Returns a height of an image. Read-only int.

Returns: int


getImage

NameDescription
getImage ()Returns the copy of an image. Read-only IImage.

Returns: IImage


getSvgImage

NameDescription
getSvgImage ()Returns or sets ISvgImage object ISvgImage This value indicates that this image has been created from SVG.

Returns: SvgImage


getSystemImage

NameDescription
getSystemImage ()Returns the copy of an image. Read-only java.awt.image.BufferedImage.

Returns: BufferedImage


getWidth

NameDescription
getWidth ()Returns a width of an image. Read-only int.

Returns: int


getX

NameDescription
getX ()Returns a X-offset of an image. Read-only int.

Returns: int


getY

NameDescription
getY ()Returns a Y-offset of an image. Read-only int.

Returns: int


hashCode

NameDescription
hashCode ()Returns the hash code of an image.

Returns: int


replaceImage

NameDescription
replaceImage (byte[])Replaces image data.

Parameters:

NameTypeDescription
newImageDatabyte[]The new image’s data.

Returns: void

Exception

ErrorCondition
ArgumentNullExceptionWhen newImageData parameter is null.

replaceImage

NameDescription
replaceImage (IImage)Replaces image data. Attention: when Image is metafile - it will be rasterized. Use replaceImage(byte[]) instead

Parameters:

NameTypeDescription
newImageIImageThe new image.

Returns: void

Exception

ErrorCondition
ArgumentNullExceptionWhen newImage parameter is null.

replaceImage

NameDescription
replaceImage (PPImage)Replaces image data.

Parameters:

NameTypeDescription
newImagePPImageThe new IPPImage.

Returns: void

Exception

ErrorCondition
ArgumentNullExceptionWhen newImage parameter is null.

setSvgImage

NameDescription
setSvgImage (SvgImage)Returns or sets ISvgImage object ISvgImage This value indicates that this image has been created from SVG.

Returns: void