Package org.apache.fop.render.ps
Class PSImageUtils
java.lang.Object
org.apache.xmlgraphics.ps.PSImageUtils
org.apache.fop.render.ps.PSImageUtils
public class PSImageUtils
extends org.apache.xmlgraphics.ps.PSImageUtils
Utility code for rendering images in PostScript.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawForm
(org.apache.xmlgraphics.ps.PSResource form, org.apache.xmlgraphics.image.loader.ImageInfo info, Rectangle rect, org.apache.xmlgraphics.ps.PSGenerator generator) Draws a form at a given location.static boolean
isImageInlined
(org.apache.xmlgraphics.image.loader.ImageInfo info, PSRenderingContext renderingContext) Indicates whether the given image (identified by anImageInfo
object) shall be inlined rather than generated as a PostScript form.Methods inherited from class org.apache.xmlgraphics.ps.PSImageUtils
getRGB, paintForm, paintForm, paintReusableImage, renderBitmapImage, renderEPS, renderEPS, translateAndScale, writeImage, writeImage, writeImage, writeImage, writeImage, writeReusableImage, writeReusableImage
-
Constructor Details
-
PSImageUtils
public PSImageUtils()
-
-
Method Details
-
isImageInlined
public static boolean isImageInlined(org.apache.xmlgraphics.image.loader.ImageInfo info, PSRenderingContext renderingContext) Indicates whether the given image (identified by anImageInfo
object) shall be inlined rather than generated as a PostScript form.- Parameters:
info
- the info object for the imagerenderingContext
- the rendering context- Returns:
- true if the image shall be inlined, false if forms shall be used.
-
drawForm
public static void drawForm(org.apache.xmlgraphics.ps.PSResource form, org.apache.xmlgraphics.image.loader.ImageInfo info, Rectangle rect, org.apache.xmlgraphics.ps.PSGenerator generator) throws IOException Draws a form at a given location.- Parameters:
form
- the form resourceinfo
- the image info object representing the image in the formrect
- the target rectangle (coordinates in millipoints)generator
- the PostScript generator- Throws:
IOException
- if an I/O error occurs
-