ColorFromArgb Method (Int32, Int32, Int32, Int32) |
Creates a color from 8-bit ARGB components
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Color FromArgb(
int red,
int green,
int blue,
int alpha = 255
)
Public Shared Function FromArgb (
red As Integer,
green As Integer,
blue As Integer,
Optional alpha As Integer = 255
) As Color
static member FromArgb :
red : int *
green : int *
blue : int *
?alpha : int
(* Defaults:
let _alpha = defaultArg alpha 255
*)
-> Color
Parameters
- red
- Type: SystemInt32
The red component (0-255) - green
- Type: SystemInt32
The green component (0-255) - blue
- Type: SystemInt32
The blue component (0-255) - alpha (Optional)
- Type: SystemInt32
The alpha component (0-255)
Return Value
Type:
ColorA new instance of the Color object with the specified components
See Also