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

Color.GetChannel Method (ColorChannel)

Gets value stored in specified channel of this color.

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

Syntax

Visual Basic
Public Overridable Function GetChannel ( _
	colorChannel As ColorChannel _
) As Byte
C#
public virtual byte GetChannel(
	ColorChannel colorChannel
)

Parameters

colorChannel

Type: Aurigma.GraphicsMill.ColorChannel

ColorChannel value specifying an alias of channel to retrieve. Draw attention, it does not check color space, so if you pass, say, Yellow to RGB color, you will get a value stored at the same index as yellow in CMYK (i.e. Green).

Return Value

Non-extended (8-bit) value stored in specified channel.

Remarks

You can also use extended version of this property, i.e. GetChannel32(Int32). Unlike this property, GetChannel32(Int32) returns extended (16-bit) value.

See Also

Reference