Package org.apache.poi.hwmf.draw
Class HwmfSLImageRenderer
java.lang.Object
org.apache.poi.hwmf.draw.HwmfSLImageRenderer
- All Implemented Interfaces:
ImageRenderer
Helper class which is instantiated by
DrawPictureShape
via reflection-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandrawImage(Graphics2D graphics, Rectangle2D anchor) Render picture data into the supplied graphicsbooleandrawImage(Graphics2D graphics, Rectangle2D anchor, Insets clip) Render picture data into the supplied graphicsgetImage()voidLoad and buffer the imagevoidloadImage(InputStream data, String contentType) Load and buffer the imagevoidsetAlpha(double alpha)
-
Constructor Details
-
HwmfSLImageRenderer
public HwmfSLImageRenderer()
-
-
Method Details
-
loadImage
Description copied from interface:ImageRendererLoad and buffer the image- Specified by:
loadImagein interfaceImageRenderer- Parameters:
data- the raw image streamcontentType- the content type- Throws:
IOException
-
loadImage
Description copied from interface:ImageRendererLoad and buffer the image- Specified by:
loadImagein interfaceImageRenderer- Parameters:
data- the raw image bytescontentType- the content type- Throws:
IOException
-
getDimension
- Specified by:
getDimensionin interfaceImageRenderer- Returns:
- the dimension of the buffered image
-
setAlpha
public void setAlpha(double alpha) - Specified by:
setAlphain interfaceImageRenderer- Parameters:
alpha- the alpha [0..1] to be added to the image (possibly already containing an alpha channel)
-
getImage
- Specified by:
getImagein interfaceImageRenderer- Returns:
- the image as buffered image
-
getImage
- Specified by:
getImagein interfaceImageRenderer- Parameters:
dim- the dimension in pixels of the returned image- Returns:
- the image as buffered image
-
drawImage
Description copied from interface:ImageRendererRender picture data into the supplied graphics- Specified by:
drawImagein interfaceImageRenderer- Returns:
- true if the picture data was successfully rendered
-
drawImage
Description copied from interface:ImageRendererRender picture data into the supplied graphics- Specified by:
drawImagein interfaceImageRenderer- Returns:
- true if the picture data was successfully rendered
-