org.ujac.print.tag
Interface ImageBuilder

All Known Implementing Classes:
BaseImageBuilder, PdfImageBuilder, RasterImageBuilder, SvgImageBuilder

public interface ImageBuilder

Name: ImageBuilder
Description: An interface for image builders, used by the ImageTag class.

Author:
lauerc

Method Summary
 com.lowagie.text.Image buildImage(DocumentHandler documentHandler, byte[] imageData, String path, float width, float height, int page)
          Builds an image from the given data.
 boolean checkFormat(byte[] imageData)
          Checks, if the implementation is capable of handling the given image data or not.
 

Method Detail

checkFormat

boolean checkFormat(byte[] imageData)
Checks, if the implementation is capable of handling the given image data or not.

Parameters:
imageData - The image data to handle.
Returns:
true if this implementation can build a image from the given data, else false.

buildImage

com.lowagie.text.Image buildImage(DocumentHandler documentHandler,
                                  byte[] imageData,
                                  String path,
                                  float width,
                                  float height,
                                  int page)
                                  throws IOException
Builds an image from the given data.

Parameters:
documentHandler - The document handler.
imageData - The image data to handle.
path - The path, where the image is located at the resoure loader.
width - The desired output width for the image (zero if unspecified).
height - The desired output height for the image (zero if unspecified).
page - The number of the page to use as image, useless for the most image builders.
Returns:
The generated image.
Throws:
IOException - In case the image creation failed.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.