https://issues.apache.org/bugzilla/show_bug.cgi?id=47555
--- Comment #5 from Thomas Deweese <[email protected]> 2009-07-22 02:42:04 PST --- (In reply to comment #4) > Well, I'm not asking for pixel-perfect rendering, just for consistent > behaviour > so my rasterised files align nicely. You are asking for pixel-perfect rendering. The Batik renderinging is effectively "off" by .57 of a pixel. I understand the desire for your rasterized files to align nicely but you should understand that what you are asking for is not as simple as you seem to think. What I don't understand is why you would describe content as being 19x10 and then be surprise when the rendered version doesn't exactly match the pixel grid at 22x12. Why don't you simply write your content to be 22x12 if that is what you want it rendered at? > Perhaps ImageTranscoder shouldn't always round down for the reason you say (I > can imagine that being a problem), but both that AND the G2D rasteriser should > round to the nearest integer - I don't control the G2D (it's from the JDK java.awt.Graphics2D), if you want to file a bug with Sun/Oracle that would be fine with me ;) > the important thing being that they both round in the same way. It is a fools errand to try to make these match in all cases. Unless the clip and the rasterized image bounds are the same (and there are reasons in the SVG standard why they aren't) there will essentially always be some cases around .5 where they go in different directions. > I don't know enough about the Batik source code (or even Java) to see > if that's what your patch does. It is not what my patch does. My patch makes it easier for you to stretch your 19x10 content to a 22x12 rectangle which requires scaling horizontally by 22/19 = 1.158 and vertically by 12/10 = 1.2 -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
