Color.FromGray

Color.FromGray method

Returns a new Color with the requested gray value.

public static Color FromGray(float gray)
ParameterTypeDescription
graySingleA float that represents the gray value of the color.

Return Value

A new instance of the Color class

See Also