Class HemfPlusGDIImageRenderer
java.lang.Object
org.apache.poi.sl.draw.BitmapImageRenderer
org.apache.poi.hemf.record.emfplus.HemfPlusGDIImageRenderer
- All Implemented Interfaces:
ImageRenderer
-
Field Summary
Fields inherited from class org.apache.poi.sl.draw.BitmapImageRenderer
img -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this image renderer implementation supports the given contentTypeintintintgetWidth()voidLoad and buffer the imagevoidloadImage(InputStream data, String contentType) Load and buffer the imagereadGDIImage(byte[] data) Converts the gdi pixel data to a buffered imagevoidsetHeight(int height) voidsetPixelFormat(HemfPlusImage.EmfPlusPixelFormat pixelFormat) voidsetStride(int stride) voidsetWidth(int width) Methods inherited from class org.apache.poi.sl.draw.BitmapImageRenderer
drawImage, drawImage, getBounds, getCachedContentType, getCachedImage, getImage, getImage, getNativeBounds, setAlpha, setAlpha, setCacheInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.sl.draw.ImageRenderer
getDimension, getGenericRecord, setDefaultCharset
-
Constructor Details
-
HemfPlusGDIImageRenderer
public HemfPlusGDIImageRenderer()
-
-
Method Details
-
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getStride
public int getStride() -
setStride
public void setStride(int stride) -
getPixelFormat
-
setPixelFormat
-
canRender
Description copied from interface:ImageRendererDetermines if this image renderer implementation supports the given contentType- Specified by:
canRenderin interfaceImageRenderer- Overrides:
canRenderin classBitmapImageRenderer- Parameters:
contentType- the image content type- Returns:
- if the content type is supported
-
loadImage
Description copied from interface:ImageRendererLoad and buffer the image- Specified by:
loadImagein interfaceImageRenderer- Overrides:
loadImagein classBitmapImageRenderer- 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- Overrides:
loadImagein classBitmapImageRenderer- Parameters:
data- the raw image bytescontentType- the content type
-
readGDIImage
Converts the gdi pixel data to a buffered image- Parameters:
data- the image data of all EmfPlusImage parts- Returns:
- the BufferedImage
-