ColorFromRgba Method (Int32, Int32, Int32, Int32)

Creates a Color from RGBA color components.
public static Color FromRgba(
	int red,
	int green,
	int blue,
	int alpha
)

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].
alphaSystemInt32
Alpha channel value 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