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

PixelFormatUtils.ChannelCountWithoutAlpha Method

Returns number of color channels (i.e. excluding alpha channel) supported by specified pixel format.

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

Syntax

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

Parameters

format

Type: Aurigma.GraphicsMill.PixelFormat

PixelFormat enumeration member to check.

Return Value

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

Remarks

It will always return 1 for indexed bitmaps.

See Also

Reference