[This is preliminary documentation and subject to change.]
The CheckBitmapBits function checks whether the pixels in a specified bitmap lie within the output gamut of a specified transform.
BOOL WINAPI CheckBitmapBits(
HTRANSFORM hColorTransform,
PVOID pSrcBits,
BMFORMAT bmInput,
DWORD dwWidth,
DWORD dwHeight,
DWORD dwStride,
PBYTE paResult,
PBMCALLBACKFN pfnCallback,
LPARAM lpCallbackData
);
If this function succeeds, the return value is a nonzero value.
If this function fails, the return value is zero. For extended error information, call GetLastError.
If the input format is not compatible with the color transform, the CheckBitmapBits function fails.
This function places results of the tests in the buffer pointed to by paResult. Each byte in the buffer corresponds to a pixel in the bitmap, and has an unsigned value between 0 and 255. The value 0 denotes that the color is in gamut, while a nonzero value denotes that it is out of gamut. For any integer n such that 0 < n < 255, a result value of n + 1 indicates that the corresponding color is at least as far out of gamut as would be indicated by a result value of n.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in icm.h.
Import Library: Use mscms.lib.
Color Management Overview, ICM 2.0 Functions, ICMProgressProcCallback, BMFORMAT