Re: [JAVA2D] Smooth Gradients

2006-06-24 Thread Niclas Hedhman
I am not very good with Java2D, but the color problem described is mostly due to incorrect LCD representation of sRGB color space on the device. Nevertheless, manual visual smoothing of this could probably also be done by changing the individual colors independently on each row. If there is a visib

Re: [JAVA2D] Smooth Gradients

2006-06-24 Thread Jim Graham
Here's a guess - you basically want the LSbit of the raster to have a regular pattern to it rather than be banded. If you don't want to reinvent the GradientPaint wheel, then you could write a delegating Paint implementation that used GradientPaint to generate an initial Raster and then filter it

Re: [JAVA2D] Smooth Gradients

2006-06-24 Thread Ben Galbraith
Jim, Thanks for looking into this, and thanks to swpalmer for creating the test case. I realize why the bars appear, and sadly, they appear on the LCDs I've tested as well. Rather than try and get you guys to introduce new features into your rendering engine (dithering in a 24-bit environment, f