Share via


CreateColorSpace

The CreateColorSpace function creates a logical color space.

HCOLORSPACE WINAPI CreateColorSpace(
  LPLOGCOLORSPACE lpLogColorSpace  );

Parameters

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.

Windows 95/98/Me: CreateColorSpaceW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems.

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 Wingdi.h.
**  Library:** Use Gdi32.lib.
**  Unicode:** Implemented as Unicode and ANSI versions on Windows 2000/XP/Vista. Also supported by Microsoft Layer for Unicode.

See Also

Basic Color Management Concepts, Functions, DeleteColorSpace