org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.helper
Class RTFImageCache
java.lang.Object
org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.helper.RTFImageCache
public class RTFImageCache
- extends Object
Todo: Document me!
- Author:
- : Thomas Morgner
Constructor Summary |
RTFImageCache(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
|
Method Summary |
com.lowagie.text.Image |
getImage(ImageContainer reference)
Helperfunction to extract an image from an imagereference. |
RTFImageCache
public RTFImageCache(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
getImage
public com.lowagie.text.Image getImage(ImageContainer reference)
throws com.lowagie.text.DocumentException,
IOException
- Helperfunction to extract an image from an imagereference. If the image is contained as java.awt.Image object only,
the image is recoded into an PNG-Image.
- Parameters:
reference
- the image reference.
- Returns:
- an image.
- Throws:
com.lowagie.text.DocumentException
- if no PDFImageElement could be created using the given ImageReference.
IOException
- if the image could not be read.