public class HemfPlusGDIImageRenderer extends BitmapImageRenderer
img
Constructor and Description |
---|
HemfPlusGDIImageRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRender(java.lang.String contentType)
Determines if this image renderer implementation supports the given contentType
|
int |
getHeight() |
HemfPlusImage.EmfPlusPixelFormat |
getPixelFormat() |
int |
getStride() |
int |
getWidth() |
void |
loadImage(byte[] data,
java.lang.String contentType)
Load and buffer the image
|
void |
loadImage(java.io.InputStream data,
java.lang.String contentType)
Load and buffer the image
|
java.awt.image.BufferedImage |
readGDIImage(byte[] data)
Converts the gdi pixel data to a buffered image
|
void |
setHeight(int height) |
void |
setPixelFormat(HemfPlusImage.EmfPlusPixelFormat pixelFormat) |
void |
setStride(int stride) |
void |
setWidth(int width) |
drawImage, drawImage, getBounds, getCachedContentType, getCachedImage, getImage, getImage, getNativeBounds, setAlpha, setAlpha, setCacheInput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDimension, getGenericRecord, setDefaultCharset
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public int getStride()
public void setStride(int stride)
public HemfPlusImage.EmfPlusPixelFormat getPixelFormat()
public void setPixelFormat(HemfPlusImage.EmfPlusPixelFormat pixelFormat)
public boolean canRender(java.lang.String contentType)
ImageRenderer
canRender
in interface ImageRenderer
canRender
in class BitmapImageRenderer
contentType
- the image content typepublic void loadImage(java.io.InputStream data, java.lang.String contentType) throws java.io.IOException
ImageRenderer
loadImage
in interface ImageRenderer
loadImage
in class BitmapImageRenderer
data
- the raw image streamcontentType
- the content typejava.io.IOException
public void loadImage(byte[] data, java.lang.String contentType)
ImageRenderer
loadImage
in interface ImageRenderer
loadImage
in class BitmapImageRenderer
data
- the raw image bytescontentType
- the content typepublic java.awt.image.BufferedImage readGDIImage(byte[] data)
data
- the image data of all EmfPlusImage partsCopyright 2022 The Apache Software Foundation or its licensors, as applicable.