Archive for December, 2006

Rounding in draw operations

December 15, 2006

rendered in classpath rendered in sun

The image (one of the samples from the Batik SVG renderer) on the left was rendered using Classpath; the image to the right using Sun’s VM. Notice how the borders of the chessboard are blurred in the Classpath image… this is due to a minor precision problem in the float/double. Rounding solves it, but perhaps rounding is only a band-aid solution to a different root problem?

( I’m really not a blogger, am I… last entry was 6 months ago…)