Click or drag to resize

ColorFromGrayscale Method

Creates a Color with a specified value for the Red, Green, and Blue components

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Color FromGrayscale(
	float val,
	float alpha = 1f
)

Parameters

val
Type: SystemSingle
Value for each RGB component
alpha (Optional)
Type: SystemSingle
Alpha value

Return Value

Type: Color
A new instance of the Color object with the specified grayscale color
See Also