|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.PPImage
public abstract class PPImage
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 | |
---|---|
float |
getHeight()
Returns the height of an image. |
byte[] |
getImage()
Returns an image as byte array. |
int |
getImageFormat()
Returns the format of a picture. |
Presentation |
getParent()
Returns the parent presentation for a picture. |
java.awt.image.RenderedImage |
getRenderedImage()
Creates and returns RenderedImage object for the current image. |
java.awt.image.RenderedImage |
getRenderedImage(int w,
int h)
Creates and returns RenderedImage object with specified size for the current image. |
java.awt.Color |
getTransparentColor()
Returns the transparent color of an image. |
float |
getWidth()
Returns the width of an image. |
void |
setTransparentColor(java.awt.Color value)
Sets the transparent color of an image. |
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 |
---|
public PPImage(Presentation parent, java.io.InputStream stream) throws PptImageException
parent
- the parent presentation.stream
- the input stream.
PptImageException
public PPImage(Presentation parent, PPImage src) throws PptImageException
parent
- the parent presentation.src
- source picture
PptImageException
Method Detail |
---|
public void write(java.io.OutputStream stream) throws PptImageException
stream
- the output stream.
PptImageException
public byte[] getImage()
public java.awt.image.RenderedImage getRenderedImage(int w, int h)
w
- width of the created image.h
- height of the created image.public java.awt.image.RenderedImage getRenderedImage()
public Presentation getParent()
public int getImageFormat()
ImageFormat
.public float getWidth()
public float getHeight()
public java.awt.Color getTransparentColor()
public void setTransparentColor(java.awt.Color value)
value
- new transparent color.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |