PPImage

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IPPImage, com.aspose.ms.System.IDisposable

public class PPImage implements IPPImage, System.IDisposable

Represents an image in a presentation.

Methods

Method Description
getBinaryData() Returns the copy of an image’s data.
getSystemImage() Returns the copy of an image.
getSvgImage() Returns or sets ISvgImage object ISvgImage
setSvgImage(ISvgImage value) Returns or sets ISvgImage object ISvgImage
replaceImage(byte[] newImageData) Replaces image data.
replaceImage(IPPImage newImage) Replaces image data.
getContentType() Returns a MIME type of an image, encoded in BinaryData (#getBinaryData.getBinaryData).
getWidth() Returns a width of an image.
getHeight() Returns a height of an image.
getX() Returns a X-offset of an image.
getY() Returns a Y-offset of an image.
hashCode() Returns the hash code of an image.
dispose() Disposes object.

getBinaryData()

public final byte[] getBinaryData()

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

Returns: byte[] - Array of bytes

getSystemImage()

public final Bitmap getSystemImage()

Returns the copy of an image. Read-only android.graphics.Bitmap.

Returns: android.graphics.Bitmap

getSvgImage()

public final ISvgImage getSvgImage()

Returns or sets ISvgImage object ISvgImage


This value indicates that this image has been created from SVG.

Returns: ISvgImage

setSvgImage(ISvgImage value)

public final void setSvgImage(ISvgImage value)

Returns or sets ISvgImage object ISvgImage


This value indicates that this image has been created from SVG.

Parameters:

Parameter Type Description
value ISvgImage

replaceImage(byte[] newImageData)

public final void replaceImage(byte[] newImageData)

Replaces image data.

Parameters:

Parameter Type Description
newImageData byte[] The new image’s data.

replaceImage(IPPImage newImage)

public final void replaceImage(IPPImage newImage)

Replaces image data.

Parameters:

Parameter Type Description
newImage IPPImage The new IPPImage.

getContentType()

public final String getContentType()

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

Returns: java.lang.String

getWidth()

public final int getWidth()

Returns a width of an image. Read-only int .

Returns: int

getHeight()

public final int getHeight()

Returns a height of an image. Read-only int .

Returns: int

getX()

public final int getX()

Returns a X-offset of an image. Read-only int .

Returns: int

getY()

public final int getY()

Returns a Y-offset of an image. Read-only int .

Returns: int

hashCode()

public int hashCode()

Returns the hash code of an image.

Returns: int - Hash code.

dispose()

public final void dispose()

Disposes object.