SetColorSpace function (wingdi.h)

The SetColorSpace function defines the input color space for a given device context.

Syntax

HCOLORSPACE SetColorSpace(
  HDC         hdc,
  HCOLORSPACE hcs
);

Parameters

hdc

Specifies the handle to a device context.

hcs

Identifies handle to the color space to set.

Return value

If this function succeeds, the return value is a handle to the hColorSpace being replaced.

If this function fails, the return value is NULL.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h
Library Gdi32.lib
DLL Gdi32.dll

See also