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.


Field Summary
protected  EsBlip m_blip
           
protected  float m_height
           
protected  Presentation m_parent
           
protected  java.awt.image.RenderedImage m_renderedImage
           
protected  float m_width
           
 
Constructor Summary
protected PPImage(Presentation parent, EsBlip blip)
           
 
Method Summary
protected  EsBlip getBlip()
           
protected  float getHeight()
           
protected abstract  java.lang.String getId()
          Returns id unique for all subclasses
 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)
           
protected  float getWidth()
           
 void write(java.io.OutputStream stream)
          Writes picture to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parent

protected Presentation m_parent

m_blip

protected EsBlip m_blip

m_width

protected float m_width

m_height

protected float m_height

m_renderedImage

protected java.awt.image.RenderedImage m_renderedImage
Constructor Detail

PPImage

protected PPImage(Presentation parent,
                  EsBlip blip)
           throws PptImageException
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.

getWidth

protected float getWidth()

getHeight

protected float getHeight()

getBlip

protected EsBlip getBlip()

getId

protected abstract java.lang.String getId()
Returns id unique for all subclasses

Returns:
unique id