public class HSSFPicture extends HSSFSimpleShape
Modifier and Type | Field and Description |
---|---|
private static POILogger |
log |
(package private) HSSFPatriarch |
patriarch |
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 |
(package private) int |
pictureIndex |
OBJECT_TYPE_COMMENT, OBJECT_TYPE_LINE, OBJECT_TYPE_OVAL, OBJECT_TYPE_PICTURE, OBJECT_TYPE_RECTANGLE, shapeType
anchor, fillColor, lineStyle, LINESTYLE_DASHDOTDOTSYS, LINESTYLE_DASHDOTGEL, LINESTYLE_DASHDOTSYS, LINESTYLE_DASHGEL, LINESTYLE_DASHSYS, LINESTYLE_DOTGEL, LINESTYLE_DOTSYS, LINESTYLE_LONGDASHDOTDOTGEL, LINESTYLE_LONGDASHDOTGEL, LINESTYLE_LONGDASHGEL, LINESTYLE_NONE, LINESTYLE_SOLID, lineStyleColor, lineWidth, LINEWIDTH_DEFAULT, LINEWIDTH_ONE_PT, noFill, parent
Constructor and Description |
---|
HSSFPicture(HSSFShape parent,
HSSFAnchor anchor)
Constructs a picture object.
|
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
int pictureIndex
HSSFPatriarch patriarch
private static final POILogger log
HSSFPicture(HSSFShape parent, HSSFAnchor anchor)
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 © 2016 Open Microscopy Environment