com.aspose.slides
Class PPImage

java.lang.Object
  extended by com.aspose.slides.PPImage
All Implemented Interfaces:
IPPImage

public class PPImage
extends java.lang.Object
implements IPPImage

Represents an image in a presentation.


Method Summary
 byte[] getBinaryData()
           Returns the copy of an image's data.
 java.lang.String getContentType()
           Returns a MIME type of an image, encoded in BinaryData.
 int getHeight()
           Returns a height of an image.
 java.awt.image.BufferedImage getSystemImage()
           Returns the copy of an image.
 int getWidth()
           Returns a width of an image.
 int getX()
           Returns a X-offset of an image.
 int getY()
           Returns a Y-offset of an image.
 int hashCode()
           Returns the hash code of an image.
 void replaceImage(byte[] newImageData)
           Replaces image data.
 void replaceImage(IPPImage newImage)
           Replaces image data.
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hashCode

public int hashCode()

Returns the hash code of an image.

Overrides:
hashCode in class java.lang.Object
Returns:
Hash code.

getContentType

public java.lang.String getContentType()

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

Specified by:
getContentType in interface IPPImage

getBinaryData

public byte[] getBinaryData()

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

Specified by:
getBinaryData in interface IPPImage

getSystemImage

public java.awt.image.BufferedImage getSystemImage()

Returns the copy of an image. Read-only Image.

Specified by:
getSystemImage in interface IPPImage

replaceImage

public void replaceImage(byte[] newImageData)

Replaces image data.

Specified by:
replaceImage in interface IPPImage
Parameters:
newImageData - The new image's data.
Throws:
com.aspose.ms.System.ArgumentNullException - When newImageData parameter is null.

replaceImage

public void replaceImage(IPPImage newImage)

Replaces image data.

Specified by:
replaceImage in interface IPPImage
Parameters:
newImage - The new IPPImage.
Throws:
com.aspose.ms.System.ArgumentNullException - When newImage parameter is null.

getWidth

public int getWidth()

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

Specified by:
getWidth in interface IPPImage

getHeight

public int getHeight()

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

Specified by:
getHeight in interface IPPImage

getX

public int getX()

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

Specified by:
getX in interface IPPImage

getY

public int getY()

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

Specified by:
getY in interface IPPImage


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.