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

Color.FromAGrayScale Method

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 FromAGrayScale ( _
	alpha As Byte, _
	gray As Byte _
) As GrayScaleColor
C#
public static GrayScaleColor FromAGrayScale(
	byte alpha,
	byte gray
)

Parameters

alpha

Type: System.Byte

Alpha channel value.
gray

Type: System.Byte

Luminosity channel value.

Return Value

GrayScaleColor class instance constructed from given channels.

Remarks

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

See Also

Reference