SplatColor.FromArgb(int, int, int) method¶
Defined in
Type: SplatColor
Namespace: Splat
Assembly: Splat.Drawing.dll
Applies to
net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.17763, net10.0-windows10.0.19041, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-windows10.0.19041, net9.0-windows10.0.17763, net9.0-desktop1.0, net9.0-browserwasm1.0, net8.0, net8.0-windows10.0.19041, net8.0-windows10.0.17763, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471, net481, net462
Overloads¶
- 1.
public static SplatColor FromArgb(int red, int green, int blue) - 2.
public static SplatColor FromArgb(int alpha, int red, int green, int blue) - 3.
public static SplatColor FromArgb(int alpha, SplatColor baseColor) - 4.
public static SplatColor FromArgb(uint argb)
1. Overload¶
public static SplatColor FromArgb(int red, int green, int blue)
Summary: Creates a SplatColor from the RGB values. The alpha will be set to 255 for full alpha.
Parameters
| Name | Type | Description |
|---|---|---|
red | int | The red channel of the color. |
green | int | The green channel of the color. |
blue | int | The blue channel of the color. |
Returns: SplatColor -- A splat color from the specified channels.
2. Overload¶
public static SplatColor FromArgb(int alpha, int red, int green, int blue)
Summary: Creates a SplatColor from the RGB values.
Parameters
| Name | Type | Description |
|---|---|---|
alpha | int | The alpha channel of the color. |
red | int | The red channel of the color. |
green | int | The green channel of the color. |
blue | int | The blue channel of the color. |
Returns: SplatColor -- A splat color from the specified channels.
3. Overload¶
public static SplatColor FromArgb(int alpha, SplatColor baseColor)
Summary: Creates a new SplatColor from another SplatColor, replacing its alpha with one specified.
Parameters
| Name | Type | Description |
|---|---|---|
alpha | int | The new alpha component to set for the new [SplatColor](# |
baseColor | [SplatColor](# | The base color to use for the RGB values. |
Returns: SplatColor -- The new SplatColor.
4. Overload¶
public static SplatColor FromArgb(uint argb)
Summary: Creates a new SplatColor from the specified int based ARGB value.
Parameters
| Name | Type | Description |
|---|---|---|
argb | uint | The int containing the ARGB values. |
Returns: SplatColor -- The new SplatColor.