SetColorSpace function

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

Syntax


HCOLORSPACE WINAPI SetColorSpace(
   HCD         hDC,
   HCOLORSPACE hColorSpace
);

Parameters

hDC

Specifies the handle to a device context.

hColorSpace

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]

Header

Wingdi.h

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Basic Color Management Concepts
Functions

 

 

Show: