ColorFromArgb Method (Int32, Color)
Creates a Color structure from the specified Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value 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,
	Color baseColor
)

Parameters

alpha
Type: SystemInt32
The alpha value for the new Color. Valid values are 0 through 255.
baseColor
Type: Aspose.ImagingColor
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.
See Also