Re: [JAVA2D] Any way to make ANTIALIAS only use one color

2008-08-04 Thread Harald Kuhr
Once again, this time to the list.. ;-) On 2. aug.. 2008, at 00.24, Jim Graham wrote: Since it doesn't seem to be working well with your particular colormap, my suggestion is to not use Antialiasing - or to come up with a better selection of colors in your colormap that provide enough

Re: [JAVA2D] Any way to make ANTIALIAS only use one color

2008-08-01 Thread Jim Graham
You shouldn't be using Antialiased rendering on an Indexed image. Antialiasing requires the ability to choose a color that is N% of the way from the foreground to the background and store that color, but that color may not be in the colormap of an Indexed image. One could argue that we should

[JAVA2D] Any way to make ANTIALIAS only use one color

2008-07-30 Thread java2d
If I draw into an Indexed bitmap, it seems that with antialias on it uses some kind of change color on edges algorithm. I am writing with one color, but the new pixels that antialiasing adds are not always the same color. I need to find a way to turn this off, and force it to use the same