Available in the LEADTOOLS Imaging toolkit. |
PaintDither example for Visual J++
This example turns on error diffusion and redisplays the bitmap.
LEAD1.setPaintDither( (short) LTOCXU.PaintDitherConstants.PAINTDITHER_DIFFUSION );
LEAD1.ForceRepaint();