fop 0.94

org.apache.fop.render.ps
Class PSImageUtils

java.lang.Object
  extended by org.apache.xmlgraphics.ps.PSImageUtils
      extended by org.apache.fop.render.ps.PSImageUtils

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

Utility code for rendering images in PostScript.


Field Summary
protected static org.apache.commons.logging.Log log
          logging instance
 
Constructor Summary
PSImageUtils()
           
 
Method Summary
static void generateFormResourceForImage(FopImage img, org.apache.xmlgraphics.ps.PSResource form, org.apache.xmlgraphics.ps.PSGenerator gen)
          Generates a form resource for a FopImage in PostScript.
static void renderBitmapImage(FopImage img, float x, float y, float w, float h, org.apache.xmlgraphics.ps.PSGenerator gen)
          Renders a bitmap image to PostScript.
static void renderEPS(EPSImage img, float x, float y, float w, float h, org.apache.xmlgraphics.ps.PSGenerator gen)
          Renders an EPS image to PostScript.
static void renderForm(FopImage img, org.apache.xmlgraphics.ps.PSResource form, float x, float y, float w, float h, org.apache.xmlgraphics.ps.PSGenerator gen)
          Renders a bitmap image (as form) to PostScript.
 
Methods inherited from class org.apache.xmlgraphics.ps.PSImageUtils
getRGB, paintForm, paintReusableImage, renderBitmapImage, renderEPS, writeImage, writeReusableImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
logging instance

Constructor Detail

PSImageUtils

public PSImageUtils()
Method Detail

renderBitmapImage

public static void renderBitmapImage(FopImage img,
                                     float x,
                                     float y,
                                     float w,
                                     float h,
                                     org.apache.xmlgraphics.ps.PSGenerator gen)
                              throws java.io.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
Throws:
java.io.IOException - In case of an I/O problem while rendering the image

renderForm

public static void renderForm(FopImage img,
                              org.apache.xmlgraphics.ps.PSResource form,
                              float x,
                              float y,
                              float w,
                              float h,
                              org.apache.xmlgraphics.ps.PSGenerator gen)
                       throws java.io.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
Throws:
java.io.IOException - In case of an I/O problem while rendering the image

generateFormResourceForImage

public static void generateFormResourceForImage(FopImage img,
                                                org.apache.xmlgraphics.ps.PSResource form,
                                                org.apache.xmlgraphics.ps.PSGenerator gen)
                                         throws java.io.IOException
Generates a form resource for a FopImage in PostScript.

Parameters:
img - image to render
form - the form resource
gen - PS generator
Throws:
java.io.IOException - In case of an I/O problem while rendering the image

renderEPS

public static void renderEPS(EPSImage img,
                             float x,
                             float y,
                             float w,
                             float h,
                             org.apache.xmlgraphics.ps.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

fop 0.94

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