Description Dithering a device independent bitmap (DIB) with the Ordered dithering method. Using the ordered dithering method, all of the pixels of the original image is compared with only one value, and depending on the comparison the dithered value is 0 or 1. Due to the method ordered dithering always producing 1 bit per pixel images (binary images). The comparison values (the original values are to be compared with) are included in a special dither matrix. This dithering function works for only 8 bit per pixel grayscale or color images. There are two modes of this dithering method: clustered-dot ordered dithering and dispersed-dot ordered dithering.
Syntax NewDib = [BIImage.]DitherOrdered hDIB nDitherMatrix
Returns NewDib LONGLONG The newly created DIB or 0 on error.
Remarks hDib LONGLONG The DIB to be dithered.
nDitherMatrix Long This parameter specifies the matrix used for thresholding by the dithering method..
Available values:
CLUSTERED_CLASSICAL (0) : Classical screen clustered-dot dithering.
CLUSTERED_LINE (1) : Line screen clustered-dot dithering.
CLUSTERED_SPIRAL (2) : Spiral screen clustered-dot dithering.
DISPERSED_5X5 (3) : Dithering by a 5x5 sized rectangular threshold matrix.
DISPERSED_8X8A (4) : Dithering by a 8x8 sized rectangular threshold matrix type A.
DISPERSED_8X8B (5) : Dithering by a 8x8 sized rectangular threshold matrix type B.
DISPERSED_16X16 (6) : Dithering by a 16x16 sized rectangular threshold matrix.
See Also