Edit

Share via


CMYK macro (wingdi.h)

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.

Return value

Type: COLORREF

A CMYK color value.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h

See also