public class HSSFPicture extends HSSFSimpleShape
Modifier and Type | Field and Description |
---|---|
static int |
PICTURE_TYPE_DIB |
static int |
PICTURE_TYPE_EMF |
static int |
PICTURE_TYPE_JPEG |
static int |
PICTURE_TYPE_PICT |
static int |
PICTURE_TYPE_PNG |
static int |
PICTURE_TYPE_WMF |
OBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE
LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT
Modifier and Type | Method and Description |
---|---|
int |
getPictureIndex() |
HSSFClientAnchor |
getPreferredSize()
Calculate the preferred size for this picture.
|
protected int[] |
getResolution(ImageReader r)
The metadata of PNG and JPEG can contain the width of a pixel in millimeters.
|
void |
resize()
Reset the image to the original size.
|
void |
setPictureIndex(int pictureIndex) |
getShapeType, setShapeType
countOfAllChildren, getAnchor, getFillColor, getLineStyle, getLineStyleColor, getLineWidth, getParent, isNoFill, setAnchor, setFillColor, setFillColor, setLineStyle, setLineStyleColor, setLineStyleColor, setLineWidth, setNoFill
public static final int PICTURE_TYPE_EMF
public static final int PICTURE_TYPE_WMF
public static final int PICTURE_TYPE_PICT
public static final int PICTURE_TYPE_JPEG
public static final int PICTURE_TYPE_PNG
public static final int PICTURE_TYPE_DIB
public int getPictureIndex()
public void setPictureIndex(int pictureIndex)
public void resize()
public HSSFClientAnchor getPreferredSize()
protected int[] getResolution(ImageReader r) throws IOException
25.4/HorizontalPixelSize
and 25.4/VerticalPixelSize
. Where 25.4 is the number of mm in inch.{horisontalPdi, verticalDpi}
.
{96, 96} is the default.IOException
Copyright © 2014 Open Microscopy Environment