Peetzer Posted March 16, 2007 Share Posted March 16, 2007 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). Note, 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 More sharing options...
Peetzer Posted March 16, 2007 Author Share Posted March 16, 2007 Oops, I'am an idiot :pinch: When using JRRenderable, the method render has width and height of the image. Overlooked it. Bye Peter Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now