GetColorSpace

The GetColorSpace function retrieves the handle to the input color space from a specified device context.

HCOLORSPACE WINAPI GetColorSpace(
  HDC hDC );

Parameters

  • hDC
    Specifies a device context that is to have its input color space handle retrieved.

Return Values

If the function succeeds, the return value is the current input color space handle.

If this function fails, the return value is NULL.

Remarks

GetColorSpace obtains the handle to the input color space regardless of whether color management is enabled for the device context.

Requirements

**  Windows NT/2000/XP/Vista:** Included in Windows 2000 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Icm.h.
**  Library:** Use Gdi32.lib.

See Also

Basic Color Management Concepts, Functions