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

Color.FromAGrayScale32 Method (Int32)

Returns GrayScaleColor class instance constructed from numeric 32-bit representation of grayscale value with alpha channel.

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

Syntax

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

Parameters

alphaGrayScale

Type: System.Int32

Numeric representation of the alpha grayscale value.

Return Value

GrayScaleColor class instance constructed from given number.

Remarks

Low byte of this 32-bit value contains intensity level, next byte contains alpha value. The rest higher bytes are ignored. You can also use extended version of this method, i.e. FromAGrayScale64(Int64).

See Also

Reference