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

Color.FromGrayScale32 Method

Returns GrayScaleColor constructed from specified luminosity level.

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

Syntax

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

Parameters

gray

Type: System.Int32

Luminosity level value.

Return Value

GrayScaleColor constructed from specified luminosity level.

Remarks

You can also use non-extended version of this method, i.e. FromGrayScale(Byte). 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 FromAGrayScale32(Int32, Int32) method.

See Also

Reference