147852369 Posted August 18, 2014 Share Posted August 18, 2014 Hello guys,There's a coloured SVG Image that I included in my JasperReport-TemplateFile. But after rendering the image isn't coloured anymore. It's black and white.Is there a support for rendering coloured SVG images?I use JasperReports and iReport in version 4.0.1.<image> <reportElement x="657" y="45" width="55" height="16"/> <imageExpression class="net.sf.jasperreports.engine.JRRenderable"> <![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstanceFromLocation("images/myImage.svg")]]> </imageExpression></image>[/code] Link to comment Share on other sites More sharing options...
147852369 Posted August 19, 2014 Author Share Posted August 19, 2014 Batik is in version 1.6 Link to comment Share on other sites More sharing options...
147852369 Posted August 19, 2014 Author Share Posted August 19, 2014 The color issue is solved by replacing Batik.I updated JasperReports 4.0.1 to version 4.1.1 to change the property net.sf.jasperreports.image.dpi because the rendered svg-images are very blurred.But net.sf.jasperreports.image.dpi = 300 changed nothing. The images are still blurred. What can I do now? The original images are very, very sharp. 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