public class PSGraphics2DAdapter extends AbstractGraphics2DAdapter
| Constructor and Description |
|---|
PSGraphics2DAdapter(org.apache.xmlgraphics.ps.PSGenerator gen,
boolean clip,
FontInfo fontInfo)
Creates a new instance.
|
| 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.
|
mpt2px, paintImage, paintToBufferedImage, setRenderingHintsForBufferedImagepublic PSGraphics2DAdapter(org.apache.xmlgraphics.ps.PSGenerator gen,
boolean clip,
FontInfo fontInfo)
gen - the PostScript generatorclip - true if the image should be clippedpublic void paintImage(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter,
RendererContext context,
int x,
int y,
int width,
int height)
throws 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 imageIOException - In case of an I/O error while writing the output formatCopyright © 2025 Apache Software Foundation. All rights reserved.