public final class JRImageLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHART_IMAGE_RESOURCE |
static java.lang.String |
COMPONENT_IMAGE_RESOURCE |
static java.lang.String |
CROSSTAB_IMAGE_RESOURCE |
static java.lang.String |
NO_IMAGE_RESOURCE |
static java.lang.String |
PROPERTY_IMAGE_ENCODER
Configuration property specifying the name of the class implementing the
JRImageEncoder interface
to be used by the engine. |
static java.lang.String |
PROPERTY_IMAGE_READER
Configuration property specifying the name of the class implementing the
JRImageReader interface
to be used by the engine. |
static java.lang.String |
SUBREPORT_IMAGE_RESOURCE |
Modifier and Type | Method and Description |
---|---|
static JRImageLoader |
getInstance(JasperReportsContext jasperReportsContext) |
java.awt.Image |
loadAwtImageFromBytes(byte[] bytes) |
byte[] |
loadBytesFromAwtImage(java.awt.Image image,
byte imageType)
Deprecated.
Replaced by
loadBytesFromAwtImage(Image, ImageTypeEnum) . |
byte[] |
loadBytesFromAwtImage(java.awt.Image image,
ImageTypeEnum imageType)
Encoding the image object using an image encoder that supports the supplied image type.
|
static java.awt.Image |
loadImage(byte[] bytes)
Deprecated.
Replaced by
loadAwtImageFromBytes(byte[]) . |
static byte[] |
loadImageDataFromAWTImage(java.awt.Image image,
byte imageType)
Deprecated.
Replaced by
loadBytesFromAwtImage(Image, byte) . |
public static final java.lang.String PROPERTY_IMAGE_READER
JRImageReader
interface
to be used by the engine. If not set, the engine will try to an image reader implementation that corresponds to the JVM version.public static final java.lang.String PROPERTY_IMAGE_ENCODER
JRImageEncoder
interface
to be used by the engine. If not set, the engine will try to an image encoder implementation that corresponds to the JVM version.public static final java.lang.String NO_IMAGE_RESOURCE
public static final java.lang.String SUBREPORT_IMAGE_RESOURCE
public static final java.lang.String CHART_IMAGE_RESOURCE
public static final java.lang.String CROSSTAB_IMAGE_RESOURCE
public static final java.lang.String COMPONENT_IMAGE_RESOURCE
public static JRImageLoader getInstance(JasperReportsContext jasperReportsContext)
public byte[] loadBytesFromAwtImage(java.awt.Image image, byte imageType) throws JRException
loadBytesFromAwtImage(Image, ImageTypeEnum)
.JRException
public byte[] loadBytesFromAwtImage(java.awt.Image image, ImageTypeEnum imageType) throws JRException
image
- the java.awt.Image object to encodeimageType
- the type of the image as specified by one of the constants defined in the JRRenderable interfaceJRException
public java.awt.Image loadAwtImageFromBytes(byte[] bytes) throws JRException
JRException
public static byte[] loadImageDataFromAWTImage(java.awt.Image image, byte imageType) throws JRException
loadBytesFromAwtImage(Image, byte)
.JRException
public static java.awt.Image loadImage(byte[] bytes) throws JRException
loadAwtImageFromBytes(byte[])
.JRException
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com