ColorFromRgb Method

Creates a fully opaque Color from RGB color components.
public static Color FromRgb(
	int red,
	int green,
	int blue
)

Parameters

redSystemInt32
Red component in the range [0,255].
greenSystemInt32
Green component in the range [0,255].
blueSystemInt32
Blue component in the range [0,255].

Return Value

Color

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionOne of the components was less than 0 or greater than 255.

See Also

Reference