Package org.apache.poi.hwmf.usermodel
Class HwmfPicture
- java.lang.Object
-
- org.apache.poi.hwmf.usermodel.HwmfPicture
-
public class HwmfPicture extends Object
-
-
Constructor Summary
Constructors Constructor Description HwmfPicture(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Graphics2D ctx)
void
draw(Graphics2D ctx, Rectangle2D graphicsBounds)
Rectangle2D
getBounds()
Returns the bounding box in device-independent units.HwmfHeader
getHeader()
HwmfPlaceableHeader
getPlaceableHeader()
List<HwmfRecord>
getRecords()
Dimension
getSize()
Return the image size in points
-
-
-
Constructor Detail
-
HwmfPicture
public HwmfPicture(InputStream inputStream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getRecords
public List<HwmfRecord> getRecords()
-
draw
public void draw(Graphics2D ctx)
-
draw
public void draw(Graphics2D ctx, Rectangle2D graphicsBounds)
-
getBounds
public 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 Dimension getSize()
Return the image size in points- Returns:
- the image size in points
-
-