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, com.aspose.ms.System.Drawing.Bitmap bitmap)
           This constructor gets an Image source.
PPImage(Presentation parent, java.io.InputStream stream)
           
PPImage(Presentation parent, java.lang.String file)
           This constructor gets a source file path from which the contents of a Picture are read.
 
Method Summary
 com.aspose.ms.System.Drawing.Image getImage()
           Returns an Image object or <B>null</B> for PICT images.
 com.aspose.ms.System.Drawing.Imaging.ImageFormat getImageFormat()
           Returns format of the picture.
 Presentation getParent()
           Returns the parent presentation.
 void write(java.io.OutputStream stream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPImage

public PPImage(Presentation parent,
               com.aspose.ms.System.Drawing.Bitmap bitmap)

This constructor gets an Image source.

Parameters:
parent - Parent presentation.
bitmap - Source image.

PPImage

public PPImage(Presentation parent,
               java.io.InputStream stream)

PPImage

public PPImage(Presentation parent,
               java.lang.String file)

This constructor gets a source file path from which the contents of a Picture are read.

Parameters:
parent - Parent presentation.
file - Input file.
Method Detail

write

public void write(java.io.OutputStream stream)

getImage

public com.aspose.ms.System.Drawing.Image getImage()

Returns an Image object or <B>null</B> for PICT images. Read-only System.Drawing.Image.


getParent

public Presentation getParent()

Returns the parent presentation. Read-only Presentation.


getImageFormat

public com.aspose.ms.System.Drawing.Imaging.ImageFormat getImageFormat()

Returns format of the picture. Read-only System.Drawing.Imaging.ImageFormat


Presentations can have images in Mac's PICT format but standard ImageFormat enum doesn't have constant for that so we use ImageFormat.Exif constant for PICT images.