org.apache.fop.render.ps

Class PSImageUtils


public class PSImageUtils
extends org.apache.xmlgraphics.ps.PSImageUtils

Utility code for rendering images in PostScript.

Field Summary

protected static Log
log
logging instance

Method Summary

static void
generateFormResourceForImage(FopImage img, PSResource form, PSGenerator gen)
Generates a form resource for a FopImage in PostScript.
static void
renderBitmapImage(FopImage img, float x, float y, float w, float h, PSGenerator gen)
Renders a bitmap image to PostScript.
static void
renderEPS(EPSImage img, float x, float y, float w, float h, PSGenerator gen)
Renders an EPS image to PostScript.
static void
renderForm(FopImage img, PSResource form, float x, float y, float w, float h, PSGenerator gen)
Renders a bitmap image (as form) to PostScript.

Field Details

log

protected static Log log
logging instance

Method Details

generateFormResourceForImage

public static void generateFormResourceForImage(FopImage img,
                                                PSResource form,
                                                PSGenerator gen)
            throws IOException
Generates a form resource for a FopImage in PostScript.
Parameters:
img - image to render
form - the form resource
gen - PS generator

renderBitmapImage

public static void renderBitmapImage(FopImage img,
                                     float x,
                                     float y,
                                     float w,
                                     float h,
                                     PSGenerator gen)
            throws IOException
Renders a bitmap image to PostScript.
Parameters:
img - image to render
x - x position
y - y position
w - width
h - height
gen - PS generator

renderEPS

public static void renderEPS(EPSImage img,
                             float x,
                             float y,
                             float w,
                             float h,
                             PSGenerator gen)
Renders an EPS image to PostScript.
Parameters:
img - EPS image to render
x - x position
y - y position
w - width
h - height
gen - PS generator

renderForm

public static void renderForm(FopImage img,
                              PSResource form,
                              float x,
                              float y,
                              float w,
                              float h,
                              PSGenerator gen)
            throws IOException
Renders a bitmap image (as form) to PostScript.
Parameters:
img - image to render
form - the form resource
x - x position
y - y position
w - width
h - height
gen - PS generator

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.