com.crionics.jpdf.forms
Class ImageField

java.lang.Object
  extended by com.crionics.jpdf.forms.ImageField

public class ImageField
extends java.lang.Object

Quick wrapper to create an Image in a document


Constructor Summary
ImageField()
           
 
Method Summary
static void createInstance(PdfDocument doc, int pageIndex, AbstractImage image, java.awt.geom.AffineTransform op)
          Creates an image at position x,y on given page
static void createInstance(PdfDocument doc, int pageIndex, AbstractImage image, int x, int y)
          Creates an image at position x,y on given page
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageField

public ImageField()
Method Detail

createInstance

public static void createInstance(PdfDocument doc,
                                  int pageIndex,
                                  AbstractImage image,
                                  java.awt.geom.AffineTransform op)
                           throws java.io.IOException,
                                  PdfException
Creates an image at position x,y on given page

Parameters:
doc - the document
pageIndex - the index of the page to draw on [1, pagemax]
image - the image to draw
op - an optional transformation matrix to resize, translate or shear the gfx before it is rendered.
Throws:
java.io.IOException
PdfException

createInstance

public static void createInstance(PdfDocument doc,
                                  int pageIndex,
                                  AbstractImage image,
                                  int x,
                                  int y)
                           throws java.io.IOException,
                                  PdfException
Creates an image at position x,y on given page

Parameters:
doc - the document
pageIndex - the index of the page to draw on [1, pagemax]
image - the image to draw
x - position x from the top left corner
y - position y from the top left corner
Throws:
java.io.IOException
PdfException


Copyright © 1999-2007 Crionics. All Rights Reserved.