Hi Florian,

"Pepping, Florian" <[EMAIL PROTECTED]> wrote on 
01/08/2007 07:40:17 AM:

> Displaying SVGs like the example I attached and zooming in, there are
> annoying concentric circles with different colors. That looks bad when
> displaying greater areas.

> I know it's a problem of the bitnumber per pixel. Using 32 bit per pixel
> everything looks fine but using 16 bits the concentric circles are
> visible. However the hardware the SVG-Files are rendered only supports
> 16 bits per pixel.

    This statement strikes me as a little odd, since Batik always renders
images at 32 bits per pixel.  How are you rendering to 16 bits per pixel?
 
    One option is to use dithering when going from 32->16 bits per pixel.
This will adjust the color mapping spatially so that you don't end up
with as much banding.

> Has anyone of you an idea how to overcome these concentric circles?
> Perhaps using anti-aliasing, radial transparency (if such exists) or
> something else.

   Batik actually implements anti-aliased gradients 
(set color-rendering="optimizeQuality" on the element being filled),
but this won't help in this case.  You need some form of dithering
to help out here.

Reply via email to