I wrote:

> Also, presumably this solution will threshold the grayscale image at 128
> (assuming an 8-bit grayscale), so you might want to apply a thresholding
> LookupOp to (a copy of) the original grayscale image before rendering it
> into the bitmap, if you need a different threshold.

No, when you draw a pixmap into a bitmap, it's dithered automatically;
there's no thresholding. So if you *did* want to have thresholding, you'd
need to do the LookupOp yourself..

> Question: will setting the KEY_DITHERING rendering hint make any
difference
> to the way pixmaps are drawn into bitmaps?

Answer: None whatsoever in 1.2.1; the result is always dithered (though not
with a nice error-diffusion algorithm, in Windows at least).

Cheers,
Pete


=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to