image-field

Returns a image object from a specified field on the current record.

Attributes

Attributes

Description

dynamic

A dynamic element increases the height of the element to fit the content of that element. Computing that dynamic height is expensive, so use it with care.

fieldname

The fieldname defines the name of the column of the tablemodel or the name of the function/expression/report property from where to read the data. The field must contain java.awt.Image objects or org.jfree.report.ImageContainer objects.

height

Determines the minimum height. Value is a whole number where each increment is equivalent to 1/72 of an inch or percentage.

Type: Integer
The height is required.

href

Sets a hyperlink for the section.

Type: String

keepAspectRatio

Defines, whether the image's original aspect ratio should be preserved during scaling. This has no effect if no scaling is used.

Type: Boolean
Default Value: false

name

Used to reference the element later. Functions pick up elements by their name.

Type: String

scale

Shrinks or expands the image to completely fill the element's defined bounds. If scaling is disabled and the unscaled image does not fit into the element's boundaries, the image is clipped at the element bounds.

Type: Boolean
Default Value: false

visible

Sets whether the object will be printed.

Type: Boolean
Default Value: true

width

Set the horizontal width of the object. The width is required.

x

Defines the horizontal starting position an object defined by a value or percentage.

Y

Defines the vertical starting position of an object defined by a value or percentage.