Package org.apache.poi.hwmf.usermodel
Class HwmfPicture
- java.lang.Object
-
- org.apache.poi.hwmf.usermodel.HwmfPicture
-
public class HwmfPicture extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HwmfPicture(java.io.InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(java.awt.Graphics2D ctx)
void
draw(java.awt.Graphics2D ctx, java.awt.geom.Rectangle2D graphicsBounds)
java.awt.geom.Rectangle2D
getBounds()
Returns the bounding box in device-independent units.HwmfHeader
getHeader()
HwmfPlaceableHeader
getPlaceableHeader()
java.util.List<HwmfRecord>
getRecords()
java.awt.Dimension
getSize()
Return the image size in points
-
-
-
Method Detail
-
getRecords
public java.util.List<HwmfRecord> getRecords()
-
draw
public void draw(java.awt.Graphics2D ctx)
-
draw
public void draw(java.awt.Graphics2D ctx, java.awt.geom.Rectangle2D graphicsBounds)
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
Returns the bounding box in device-independent units. Usually this is taken from the placeable header.- Returns:
- the bounding box
-
getPlaceableHeader
public HwmfPlaceableHeader getPlaceableHeader()
-
getHeader
public HwmfHeader getHeader()
-
getSize
public java.awt.Dimension getSize()
Return the image size in points- Returns:
- the image size in points
-
-