Color32FromGray Method

Creates a Color32 structure representing a grayscale color of the specified brightness.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static Color32 FromGray(
	byte brightness
)

Parameters

brightness  Byte
The brightness of the gray color to be created where 0 represents the black color and 255 represents the white color.

Return Value

Color32
A Color32 structure representing a grayscale color of the specified brightness.

See Also