ColorFromArgb Method (Int32, Color) |
Creates a
Color structure from the specified
Color structure,
but with the new specified alpha value.
Namespace: GroupDocs.Watermark.WatermarksAssembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntaxpublic static Color FromArgb(
int alpha,
Color baseColor
)
Public Shared Function FromArgb (
alpha As Integer,
baseColor As Color
) As Color
public:
static Color FromArgb(
int alpha,
Color baseColor
)
static member FromArgb :
alpha : int *
baseColor : Color -> Color
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:
ColorThe
Color that this method creates.
Exceptions
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