ColorFFromGray Method
Creates a
ColorF structure representing a grayscale color of the specified
brightness.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static ColorF FromGray(
float brightness
)
Public Shared Function FromGray (
brightness As Single
) As ColorF
public:
static ColorF FromGray(
float brightness
)
static member FromGray :
brightness : float32 -> ColorF
- brightness Single
- The brightness of the gray color to be created where 0 represents the black color and 1 represents the white color.
The parameter is not validated, but you can use the <see cref="IsValid"/> property or the <see cref="Clip">Clip</see> method on the created result.
ColorFA
ColorF structure representing a grayscale color of the specified
brightness.