CreateColorSpace

[This is preliminary documentation and subject to change.]

The CreateColorSpace function creates a logical color space.

HCOLORSPACE WINAPI CreateColorSpace(
  LPLOGCOLORSPACE lpLogColorSpace  
);
 

Parameters

lpLogColorSpace
Pointer to the LOGCOLORSPACE data structure.

Return Values

If this function succeeds, the return value is a handle that identifies a color space.

If this function fails, the return value is NULL.

Remarks

When the color space is no longer needed, use DeleteColorSpace to delete it.

QuickInfo

  Windows NT: Requires version 4.0 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.
  Import Library: Use gdi32.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Color Management Overview, ICM 2.0 Functions, DeleteColorSpace