protected class SvgIcon.BufferedImageTranscoder
extends ImageTranscoder
Modifier and Type | Field and Description |
---|---|
protected java.awt.image.BufferedImage |
bufferedImage
The BufferedImage generated from the SVG document.
|
Modifier | Constructor and Description |
---|---|
protected |
BufferedImageTranscoder() |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
createImage(int width,
int height)
Creates a new ARGB image with the specified dimension.
|
java.awt.image.BufferedImage |
getBufferedImage()
Returns the BufferedImage generated from the SVG document.
|
void |
setDimensions(int w,
int h)
Set the dimensions to be used for the image.
|
void |
writeImage(java.awt.image.BufferedImage img,
TranscoderOutput output)
Writes the specified image to the specified output.
|
protected java.awt.image.BufferedImage bufferedImage
public java.awt.image.BufferedImage createImage(int width, int height)
width
- the image width in pixelsheight
- the image height in pixelspublic void writeImage(java.awt.image.BufferedImage img, TranscoderOutput output) throws TranscoderException
img
- the image to writeoutput
- the output where to store the imageTranscoderException
- if an error occured while storing the imageTranscoderException
public java.awt.image.BufferedImage getBufferedImage()
public void setDimensions(int w, int h)