Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CreateColorSpace function

The CreateColorSpace function creates a logical color space.

Syntax


HCOLORSPACE WINAPI CreateColorSpace(
   LPLOGCOLORSPACE lpLogColorSpace
);

Parameters

lpLogColorSpace

Pointer to the LOGCOLORSPACE data structure.

Return value

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h

Library

Gdi32.lib

DLL

Gdi32.dll

Unicode and ANSI names

CreateColorSpaceW (Unicode) and CreateColorSpaceA (ANSI)

See also

Basic Color Management Concepts
Functions
DeleteColorSpace

 

 

Show: