The DrvIcmCheckBitmapBits function checks whether the pixels in the specified bitmap lie within the device gamut of the specified transform.
BOOL
DrvIcmCheckBitmapBits(
IN DHPDEV dhpdev,
IN HANDLE hColorTransform,
IN SURFOBJ *pso,
OUT PBYTE paResults
);
DrvIcmCheckBitmapBits returns TRUE upon success. Otherwise, it reports an error and returns FALSE.
Declared in winddi.h. Include winddi.h.
Each byte in the array to which paResults points corresponds with a pixel in the bitmap. For each pixel, the driver determines whether its color value is in the device gamut and then writes a value between zero and 255 in the corresponding array byte. The values have the following meanings:
| Value | Meaning |
|---|---|
| Zero | The color is in the device gamut. |
| Nonzero | The color is outside of the gamut. A value of n+1 indicates that the color is at least as far out of the gamut as a value of n. |
DrvIcmCheckBitmapBits can be optionally implemented in drivers that support ICM. A driver indicates support for ICM by setting the GCAPS_ICM flag in the flGraphicsCaps member of the DEVINFO structure.