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

PixelFormatUtils.ChannelCount Method

Returns number of channels (including alpha channel) supported by specified pixel format.

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

Syntax

Visual Basic
Public Shared Function ChannelCount ( _
	format As PixelFormat _
) As Integer
C#
public static int ChannelCount(
	PixelFormat format
)

Parameters

format

Type: Aurigma.GraphicsMill.PixelFormat

PixelFormat enumeration member to check.

Return Value

Number of channels (including alpha channel) supported by specified pixel format.

Remarks

It will always return 1 for indexed bitmaps.

See Also

Reference