org.apache.fop.render
Class AbstractGraphics2DAdapter
java.lang.Objectorg.apache.fop.render.AbstractGraphics2DAdapter
- Graphics2DAdapter
public abstract class AbstractGraphics2DAdapter
extends java.lang.Object
Graphics2DAdapter implementation for PCL and HP GL/2.
paintToBufferedImage
protected BufferedImage paintToBufferedImage(Graphics2DImagePainter painter,
RendererContext.RendererContextWrapper context,
int resolution,
boolean gray,
boolean withAlpha) Paints the image to a BufferedImage and returns that.
painter - the painter which will paint the actual imagecontext - the renderer context for the current rendererresolution - the requested bitmap resolutiongray - true if the generated image should be in grayscales
- the generated BufferedImage
setRenderingHintsForBufferedImage
protected void setRenderingHintsForBufferedImage(Graphics2D g2d)
Sets rendering hints on the Graphics2D created for painting to a BufferedImage. Subclasses
can modify the settings to customize the behaviour.
g2d - the Graphics2D instance
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.