jasperreport生成pdf_jasperreport 导出excel_jasperreport json(54)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

creating the report design. It might be that the dimensions of the image element specified at design time

do not correspond to the actual image loaded at runtime.

This is why you have to decide how you expect the image to behave in order to adapt to the original

image element dimensions you specified in the report design. There is the scaleImage attribute that

allows you to do that, by choosing one of its 3 possible values:

_ Clipping the image: If the actual image is larger than the image element size, it will be cut off so

that it keeps its original resolution, and only the region that fits the specified size will be displayed

(scaleImage="Clip").

The JasperReports Ultimate Guide

Page 59

_ Forcing the image size: If the dimensions of the actual image do not fit those specified for the

image element that displays it, the image can be forced to obey them and stretch itself so that it fits

in the designated output area. It will be deformed if necessary (scaleImage="FillFrame").

_ Keeping image proportions: If the actual image does not fit into the image element, it can be

adapted to those dimensions without needing to deform it and keep its original proportions

(scaleImage="RetainShape").

Retain Shape

Clip

Fill Frame

- figure 7 -

Caching Images

All image elements have dynamic content. There are no special elements to introduce static images on

the reports, like we have special static text elements.

However, most of the time, the images on a report are in fact static and do not necessarily come from


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-54.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...