CMYK macro

The CMYK macro creates a CMYK color value by combining the specified cyan, magenta, yellow, and black values.

Syntax


COLORREF CMYK(
    c,
    m,
    y,
    k
);

Parameters

c

The cyan value for the color to be created.

m

The magenta value for the color to be created.

y

The yellow value for the color to be created.

k

The black value for the color to be created.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h

See also

Basic Color Management Concepts
Macros for CMYK Values and Colors
GetCValue
GetMValue
GetKValue
GetYValue

 

 

Show: