The EngDitherColor function returns a standard 8x8 dither that approximates the specified RGB color.
ULONG
EngDitherColor(
IN HDEV hdev,
IN ULONG iMode,
IN ULONG rgb,
OUT ULONG *pul
);
| Value | Meaning |
|---|---|
| DM_DEFAULT | Requests that GDI create a dither for the native, default color space of the device. For example, if the device is running at 16bpp, the resulting dither is in a 16bpp format. |
| DM_MONOCHROME | Requests that GDI create the dither for monochrome color space; that is, the dither is returned as a 1bpp bitmap. |
The return value is DCR_DRIVER if the dither values have been calculated by the driver, or DCR_SOLID if the engine should use the best solid color approximation of the color.
Declared in winddi.h. Include winddi.h.
EngDitherColor can be called for bitmaps that are 8bpp or higher.