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

Color.FromGrayScale Method

Returns GrayScaleColor constructed from specified luminosity level.

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

Syntax

Visual Basic
Public Shared Function FromGrayScale ( _
	gray As Byte _
) As GrayScaleColor
C#
public static GrayScaleColor FromGrayScale(
	byte gray
)

Parameters

gray

Type: System.Byte

Luminosity level value.

Return Value

GrayScaleColor constructed from specified luminosity level.

Remarks

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

See Also

Reference