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

Color.FromAGrayScale32 Method (Int32, Int32)

Returns GrayScaleColor class instance constructed from given luminosity and alpha channel values.

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

Syntax

Visual Basic
Public Shared Function FromAGrayScale32 ( _
	alpha As Integer, _
	gray As Integer _
) As GrayScaleColor
C#
public static GrayScaleColor FromAGrayScale32(
	int alpha,
	int gray
)

Parameters

alpha

Type: System.Int32

Alpha channel value.
gray

Type: System.Int32

Luminosity channel value.

Return Value

GrayScaleColor class instance constructed from given channels.

Remarks

You can also use non-extended version of this method, i.e. FromAGrayScale(Byte, Byte). If you do not care about alpha channel, you can also use FromGrayScale32(Int32) method.

See Also

Reference