I'm drawing contact pictures on a monochrome display, but the results are poor, obviously only threshold dithering is applied (see comparisons here: dithering algorithms). How can I achieve the ordered or the other (better) dithering results?
Here's the code I use:
// RGB_565 is most suitable for monochrome display
Bitmap b = Bitmap.createBitmap(desW, desH, Bitmap.Config.RGB_565);
// Set the density to default to avoid scaling.
b.setDensity(DisplayMetrics.DENSITY_DEFAULT);
Canvas c = new Canvas(b);
c.drawBitmap(photo, source, destination, new Paint(Paint.FILTER_BITMAP_FLAG | Paint.DITHER_FLAG));
I tried setting different bitmap configurations, but doesn't change anything.