com.aspose.slides
Class PPImage

java.lang.Object
  extended by com.aspose.slides.PPImage
Direct Known Subclasses:
Picture, PictureBullet

public abstract class PPImage
extends java.lang.Object

Represents an abstract image used in a presentation.


Constructor Summary
PPImage(Presentation parent, java.io.InputStream stream)
          This constructor gets a source stream from which the contents of the Picture is read.
PPImage(Presentation parent, PPImage src)
          This constructor gets another picture as a source.
 
Method Summary
 byte[] getImage()
          Returns an Image object.
 int getImageFormat()
          Returns the format of a picture.
 Presentation getParent()
          Returns the parent presentation for a picture.
 java.awt.image.RenderedImage getRenderedImage()
           
 java.awt.image.RenderedImage getRenderedImage(int w, int h)
           
 void write(java.io.OutputStream stream)
          Writes picture to a stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPImage

public PPImage(Presentation parent,
               java.io.InputStream stream)
        throws PptImageException
This constructor gets a source stream from which the contents of the Picture is read.

Parameters:
parent - the parent presentation.
stream - the input stream.
Throws:
PptImageException

PPImage

public PPImage(Presentation parent,
               PPImage src)
        throws PptImageException
This constructor gets another picture as a source.

Parameters:
parent - the parent presentation.
src - source picture
Throws:
PptImageException
Method Detail

write

public void write(java.io.OutputStream stream)
           throws PptImageException
Writes picture to a stream.

Parameters:
stream - the output stream.
Throws:
PptImageException

getImage

public byte[] getImage()
Returns an Image object.

Returns:
The image represented by byte array.

getRenderedImage

public java.awt.image.RenderedImage getRenderedImage(int w,
                                                     int h)

getRenderedImage

public java.awt.image.RenderedImage getRenderedImage()

getParent

public Presentation getParent()
Returns the parent presentation for a picture.

Returns:
The parent presentation.

getImageFormat

public int getImageFormat()
Returns the format of a picture.

Returns:
The picture format. See ImageFormat.