How to dither an image

How to dither an image

         Image editing with Dithering method requires to specify `ThresholdDithering` or `FloydSteinbergDithering` options. The `ThresholdDitherig` option uses a simple and fast dithering method, and on the contrary, the `FloydSteinbergDithering` is a more complex method that uses the average value of nearest neighbors' pixels' intensities. The second parameter defines the color palette in bits for use for dithering. You can choose more bits for higher quality of the resulting image, but at the same time you will have a larger image file: