Color64FromGray Method

Creates a Color64 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#
[CLSCompliantAttribute(false)]
public static Color64 FromGray(
	ushort brightness
)

Parameters

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

Return Value

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

See Also