ColorFromArgb Method (Int32, Color)
Creates a Color structure from the specified Color structure, but with the new specified alpha value.

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

Parameters

alpha
Type: SystemInt32
The alpha value for the new Color. Valid values are 0 through 255.
baseColor
Type: GroupDocs.Watermark.WatermarksColor
The Color from which to create the new Color.

Return Value

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