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 |
HwmfPicture(java.io.InputStream inputStream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HwmfPicture
public HwmfPicture(java.io.InputStream inputStream)
throws java.io.IOException
- Throws:
java.io.IOException
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