This documentation is for the old version. Go to the latest Graphics Mill docs

Color.FromCmyk Method

Returns CmykColor class instance constructed from all 4 color channels (cyan, magenta, yellow, and black).

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Shared Function FromCmyk ( _
	cyan As Byte, _
	magenta As Byte, _
	yellow As Byte, _
	black As Byte _
) As CmykColor
C#
public static CmykColor FromCmyk(
	byte cyan,
	byte magenta,
	byte yellow,
	byte black
)

Parameters

cyan

Type: System.Byte

Cyan channel value.
magenta

Type: System.Byte

Magenta channel value.
yellow

Type: System.Byte

Yellow channel value.
black

Type: System.Byte

Black channel value.

Return Value

CmykColor class instance constructed from given channels.

Remarks

You can also use extended version of this method, i.e. FromCmyk32(Int32, Int32, Int32, Int32). If you need also supply alpha channel, you can use FromAcmyk(Byte, Byte, Byte, Byte, Byte) method.

Examples

Visual Basic
Dim cmyk As Aurigma.GraphicsMill.CmykColor = _
 Aurigma.GraphicsMill.Color.FromCmyk(255, 255, 0, 0)
C#
Aurigma.GraphicsMill.CmykColor cmyk =
    Aurigma.GraphicsMill.Color.FromCmyk(255, 255, 0, 0);

See Also

Reference