Click or drag to resize

Color Constructor (Object, Single, Single, Single, Single)

Initializes a new instance of the Color struct with the specified native control object.

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public Color(
	Object controlObject,
	float red,
	float green,
	float blue,
	float alpha
)

Parameters

controlObject
Type: SystemObject
Native control object representing this color.
red
Type: SystemSingle
Red component (0-1)
green
Type: SystemSingle
Green component (0-1)
blue
Type: SystemSingle
Blue component (0-1)
alpha
Type: SystemSingle
Alpha component (0-1)
Remarks
Some platforms (e.g. macOS) have system color objects that change their RGB value automatically based on the display mode, such as light & dark.
See Also