ColorRGBACreateFromArgb Method (Byte, Byte, Byte, Byte) |
Constructs a RGBA color from the four ARGB components (alpha, red, green, and blue) values.
Namespace:
Rhino.Display
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntaxpublic static ColorRGBA CreateFromArgb(
byte alpha,
byte red,
byte green,
byte blue
)
Public Shared Function CreateFromArgb (
alpha As Byte,
red As Byte,
green As Byte,
blue As Byte
) As ColorRGBA
Parameters
- alpha
- Type: SystemByte
The alpha component. Valid values are 0 through 255. - red
- Type: SystemByte
The red component. Valid values are 0 through 255. - green
- Type: SystemByte
The green component. Valid values are 0 through 255. - blue
- Type: SystemByte
The blue component. Valid values are 0 through 255.
Return Value
Type:
ColorRGBAA RGBA color with the specified component values.
See Also