net.sf.jasperreports.engine.util
Class JRImageLoader
java.lang.Object
net.sf.jasperreports.engine.util.JRImageLoader
- public class JRImageLoader
- extends java.lang.Object
- Version:
- $Id: JRImageLoader.java,v 1.14 2005/07/27 08:43:44 teodord Exp $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_IMAGE
public static final byte NO_IMAGE
- See Also:
- Constant Field Values
SUBREPORT_IMAGE
public static final byte SUBREPORT_IMAGE
- See Also:
- Constant Field Values
CHART_IMAGE
public static final byte CHART_IMAGE
- See Also:
- Constant Field Values
JRImageLoader
public JRImageLoader()
loadImageDataFromFile
public static byte[] loadImageDataFromFile(java.io.File file)
throws JRException
- Throws:
JRException
loadImageDataFromURL
public static byte[] loadImageDataFromURL(java.net.URL url)
throws JRException
- Throws:
JRException
loadImageDataFromInputStream
public static byte[] loadImageDataFromInputStream(java.io.InputStream is)
throws JRException
- Throws:
JRException
loadImageDataFromLocation
public static byte[] loadImageDataFromLocation(java.lang.String location)
throws JRException
- Throws:
JRException
loadImageDataFromAWTImage
public static byte[] loadImageDataFromAWTImage(java.awt.image.BufferedImage bi)
throws JRException
- Throws:
JRException
loadImageDataFromAWTImage
public static byte[] loadImageDataFromAWTImage(java.awt.Image img)
throws JRException
- Throws:
JRException
getImage
public static java.awt.Image getImage(byte index)
throws JRException
- Throws:
JRException
loadImage
public static java.awt.Image loadImage(byte[] bytes)
throws JRException
- Throws:
JRException
loadImage
protected static java.awt.Image loadImage(java.lang.String image)
throws JRException
- Loads an image from an specified resource.
- Parameters:
image
- the resource name
- Throws:
JRException
© 2001-2005 JasperSoft Corporation www.jaspersoft.com