ColorFromArgb Method (Int32, Int32, Int32, Int32)
Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.05
Syntax
public static Color FromArgb(
	int alpha,
	int red,
	int green,
	int blue
)

Parameters

alpha
Type: SystemInt32
The alpha component. Valid values are 0 through 255.
red
Type: SystemInt32
The red component. Valid values are 0 through 255.
green
Type: SystemInt32
The green component. Valid values are 0 through 255.
blue
Type: SystemInt32
The blue component. Valid values are 0 through 255.

Return Value

Type: Color
The Color that this method creates.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionalpha, red, green, or blue is less than 0 or greater than 255.
See Also