ColorFromArgb Method (Int32, Int32, Int32, Int32) |
Creates a
Color structure from the four ARGB component (alpha, red, green, and blue) values.
Namespace: GroupDocs.Watermark.WatermarksAssembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntaxpublic static Color FromArgb(
int alpha,
int red,
int green,
int blue
)
Public Shared Function FromArgb (
alpha As Integer,
red As Integer,
green As Integer,
blue As Integer
) As Color
public:
static Color FromArgb(
int alpha,
int red,
int green,
int blue
)
static member FromArgb :
alpha : int *
red : int *
green : int *
blue : int -> Color
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:
ColorThe
Color that this method creates.
Exceptions
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