| |
|
| java.lang.Object org.apache.poi.hslf.model.Shape org.apache.poi.hslf.model.SimpleShape org.apache.poi.hslf.model.Picture
Picture | public class Picture extends SimpleShape (Code) | | Represents a picture in a PowerPoint document.
author: Yegor Kozlov |
Field Summary | |
final public static byte | DIB | final public static int | EMF | final public static int | JPEG | final public static int | PICT | final public static int | PNG | final public static int | WMF |
Method Summary | |
protected void | afterInsert(Sheet sh) | protected EscherContainerRecord | createSpContainer(int idx, boolean isChild) Create a new Picture and populate the inital structure of the EscherSp record which holds information about this picture.
Parameters: idx - the index of the picture which referes to EscherBSE container. | public PictureData | getPictureData() Returns the picture data for this picture. | public int | getPictureIndex() Returns index associated with this picture. | public void | setDefaultSize() Resize this picture to the default size.
For PNG and JPEG resizes the image to 100%,
for other types sets the default size of 200x200 pixels. |
DIB | final public static byte DIB(Code) | | Windows DIB (BMP)
|
EMF | final public static int EMF(Code) | | Windows Enhanced Metafile (EMF)
|
JPEG | final public static int JPEG(Code) | | JPEG
|
PICT | final public static int PICT(Code) | | Macintosh PICT
|
PNG | final public static int PNG(Code) | | PNG
|
WMF | final public static int WMF(Code) | | Windows Metafile (WMF)
|
Picture | public Picture(int idx)(Code) | | Create a new Picture
Parameters: idx - the index of the picture |
Picture | public Picture(int idx, Shape parent)(Code) | | Create a new Picture
Parameters: idx - the index of the picture Parameters: parent - the parent shape |
Picture | protected Picture(EscherContainerRecord escherRecord, Shape parent)(Code) | | Create a Picture object
Parameters: escherRecord - the EscherSpContainer record which holds information aboutthis picture in the Slide Parameters: parent - the parent shape of this picture |
afterInsert | protected void afterInsert(Sheet sh)(Code) | | By default set the orininal image size
|
createSpContainer | protected EscherContainerRecord createSpContainer(int idx, boolean isChild)(Code) | | Create a new Picture and populate the inital structure of the EscherSp record which holds information about this picture.
Parameters: idx - the index of the picture which referes to EscherBSE container. the create Picture object |
getPictureData | public PictureData getPictureData()(Code) | | Returns the picture data for this picture.
the picture data for this picture. |
getPictureIndex | public int getPictureIndex()(Code) | | Returns index associated with this picture.
Index starts with 1 and points to a EscherBSE record which
holds information about this picture.
the index to this picture (1 based). |
setDefaultSize | public void setDefaultSize()(Code) | | Resize this picture to the default size.
For PNG and JPEG resizes the image to 100%,
for other types sets the default size of 200x200 pixels.
|
|
|
|