fop 0.90alpha1

org.apache.fop.render.ps
Class PSImageUtils

java.lang.Object
  extended byorg.apache.fop.render.ps.PSImageUtils

public class PSImageUtils
extends java.lang.Object

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 renderBitmapImage(FopImage img, float x, float y, float w, float h, PSGenerator gen)
          Renders a bitmap image to PostScript.
static void renderEPS(byte[] rawEPS, java.lang.String name, float x, float y, float w, float h, int bboxx, int bboxy, int bboxw, int bboxh, PSGenerator gen)
          Places an EPS file in the PostScript stream.
static void renderEPS(EPSImage img, float x, float y, float w, float h, PSGenerator gen)
           
 
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,
                                     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

renderEPS

public static void renderEPS(EPSImage img,
                             float x,
                             float y,
                             float w,
                             float h,
                             PSGenerator gen)

renderEPS

public static void renderEPS(byte[] rawEPS,
                             java.lang.String name,
                             float x,
                             float y,
                             float w,
                             float h,
                             int bboxx,
                             int bboxy,
                             int bboxw,
                             int bboxh,
                             PSGenerator gen)
                      throws java.io.IOException
Places an EPS file in the PostScript stream.

Parameters:
rawEPS - byte array containing the raw EPS data
name - name for the EPS document
x - x-coordinate of viewport in millipoints
y - y-coordinate of viewport in millipoints
w - width of viewport in millipoints
h - height of viewport in millipoints
bboxx - x-coordinate of EPS bounding box in points
bboxy - y-coordinate of EPS bounding box in points
bboxw - width of EPS bounding box in points
bboxh - height of EPS bounding box in points
gen - the PS generator
Throws:
java.io.IOException - in case an I/O error happens during output

fop 0.90alpha1

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