ImageHandler, ImageHandlerBasePDFImageHandlerGraphics2Dpublic abstract class AbstractImageHandlerGraphics2D extends java.lang.Object implements ImageHandler
| Constructor | Description |
|---|---|
AbstractImageHandlerGraphics2D() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.awt.image.BufferedImage |
paintToBufferedImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter,
java.awt.Dimension targetDimension,
int resolution,
boolean gray,
boolean withAlpha) |
Paints the image to a BufferedImage and returns that.
|
protected void |
setRenderingHintsForBufferedImage(java.awt.Graphics2D g2d) |
Sets rendering hints on the Graphics2D created for painting to a BufferedImage.
|
handleImage, isCompatiblegetPriority, getSupportedImageClass, getSupportedImageFlavorsprotected java.awt.image.BufferedImage paintToBufferedImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter,
java.awt.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(java.awt.Graphics2D g2d)
g2d - the Graphics2D instanceCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.