org.apache.fop.render.pdf
public class PDFGraphics2DAdapter extends AbstractGraphics2DAdapter
| Constructor and Description |
|---|
PDFGraphics2DAdapter(PDFRenderer renderer)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
paintImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter,
RendererContext context,
int x,
int y,
int width,
int height)
Paints an arbitrary images on a given Graphics2D instance.
|
protected void |
setRenderingHintsForBufferedImage(java.awt.Graphics2D g2d)
Sets rendering hints on the Graphics2D created for painting to a BufferedImage.
|
paintImage, paintToBufferedImagepublic PDFGraphics2DAdapter(PDFRenderer renderer)
renderer - the Renderer instance to which this instance belongspublic void paintImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter,
RendererContext context,
int x,
int y,
int width,
int height)
throws java.io.IOException
painter - the painter which will paint the actual imagecontext - the renderer context for the current rendererx - X position of the imagey - Y position of the imagewidth - width of the imageheight - height of the imagejava.io.IOException - In case of an I/O error while writing the output formatprotected void setRenderingHintsForBufferedImage(java.awt.Graphics2D g2d)
setRenderingHintsForBufferedImage in class AbstractGraphics2DAdapterg2d - the Graphics2D instanceCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.