public abstract class AbstractImageHandlerGraphics2D extends Object implements ImageHandler
Constructor and Description |
---|
AbstractImageHandlerGraphics2D() |
Modifier and Type | Method and Description |
---|---|
protected BufferedImage |
paintToBufferedImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter,
Dimension targetDimension,
int resolution,
boolean gray,
boolean withAlpha)
Paints the image to a BufferedImage and returns that.
|
protected void |
setRenderingHintsForBufferedImage(Graphics2D g2d)
Sets rendering hints on the Graphics2D created for painting to a BufferedImage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleImage, isCompatible
getPriority, getSupportedImageClass, getSupportedImageFlavors
protected BufferedImage paintToBufferedImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter, Dimension targetDimension, int resolution, boolean gray, boolean withAlpha)
painter
- the painter which will paint the actual imagetargetDimension
- the target dimensions of the image to be converted to a bitmapresolution
- the requested bitmap resolutiongray
- true if the generated image should be in grayscaleswithAlpha
- true if an alpha channel should be createdprotected void setRenderingHintsForBufferedImage(Graphics2D g2d)
g2d
- the Graphics2D instanceCopyright © 2025 Apache Software Foundation. All rights reserved.