ColorFromArgb Method (Int32, Int32, Int32, Int32)
Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values.

Namespace: GroupDocs.Watermark.Watermarks
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public static Color FromArgb(
	int alpha,
	int red,
	int green,
	int blue
)

Parameters

alpha
Type: SystemInt32
The alpha component value for the new Color. Valid values are 0 through 255.
red
Type: SystemInt32
The red component value for the new Color. Valid values are 0 through 255.
green
Type: SystemInt32
The green component value for the new Color. Valid values are 0 through 255.
blue
Type: SystemInt32
The blue component value for the new Color. Valid values are 0 through 255.

Return Value

Type: Color
The Color that this method creates.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionRed, green, or blue is less than 0 or greater than 255.
Remarks
Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.
See Also