HBColor Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| HBColor(UInt32) |
Initializes a new instance of the HBColor struct from a raw 32-bit BGRA value. |
| HBColor(Byte, Byte, Byte, Byte) |
Initializes a new instance of the HBColor struct from individual RGBA channel values. |
HBColor(Byte, Byte, Byte, Byte)
Initializes a new instance of the HBColor struct from individual RGBA channel values.
public HBColor(byte red, byte green, byte blue, byte alpha);
Parameters
- red
- Byte
The red channel value (0–255).
- green
- Byte
The green channel value (0–255).
- blue
- Byte
The blue channel value (0–255).
- alpha
- Byte
The alpha channel value (0–255), where 0 is fully transparent and 255 is fully opaque.