Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Wiki  API  Corporate

com.aspose.powerpoint
Class Picture

java.lang.Object
  extended by com.aspose.powerpoint.Picture

public final class Picture
extends java.lang.Object

Represents the picture in a presentation.


Constructor Summary
Picture(Presentation parent, java.io.InputStream stream)
          This constructor gets a source stream from which the contents of the Picture are read.
Picture(Presentation parent, Picture 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.
 int getPictureId()
          Returns the unique Id of a picture.
 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

Picture

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

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

Picture

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

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

write

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

Parameters:
stream - the output stream.
Throws:
PptWriteException

getImage

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

Returns:
The image represented by byte array.

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.

getPictureId

public int getPictureId()
Returns the unique Id of a picture.

Returns:
The picture Id.