Jump to content
Changes to the Jaspersoft community edition download ×

Getting image size from report


Recommended Posts

Hi I'am using an JRRenderable image on my report in which I fill the content of my image (blob data) by using a scriptlet (I'am using JasperReports 1.3.0).


How can I obtain the image width and height of the image I placed on the report in code (is fixed).


I have a class that extends the ReportImage (for the renderable part).




I could suffice with an inputStream but I've noticed that scaleImage options muck up my transparent images.


FillFrame and RetainShape are problematic, Clip is OK.


So I manually want to scale my images (in proportions) to fit either the width or height of the image holder I placed on the report. So hence the question of obtaining the width or height of the image holder dynamically.


Hope someone can help ;)


Thx Peter

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...