ColorFromArgb Method (Int32, Int32, Int32)
Creates a Color structure from the specified 8-bit color values (red, green, and blue) and the alpha value is implicitly 255 (fully opaque).

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

Parameters

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
ArgumentOutOfRangeException Red, 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 color component, the value of each component is limited to 8 bits.
See Also