SplatColor.FromArgb(int, int, int) method¶
Defined in
Type: SplatColor Namespace: Splat Assembly: Splat.Drawing.dll
Applies to
net11.0, net11.0-maccatalyst27.2, net11.0-windows10.0.19041, net11.0-android37.0, net11.0-macos27.2, net11.0-tvos27.2, net11.0-ios27.2, net10.0, net10.0-windows10.0.19041, net10.0-android36.0, net10.0-tvos26.0, net10.0-macos26.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-windows10.0.17763, net48, net47, net472, net471, net481
Overloads¶
public static SplatColor FromArgb(int red, int green, int blue)public static SplatColor FromArgb(int alpha, int red, int green, int blue)public static SplatColor FromArgb(int alpha, SplatColor baseColor)public static SplatColor FromArgb(uint argb)
1. Overload¶
public static SplatColor FromArgb(int red, int green, int blue)
View source (opens in a new tab)
Summary: Creates a SplatColor from the RGB values. The alpha will be set to 255 for full alpha.
Parameters
| Name | Type | Description |
|---|---|---|
red | int (opens in a new tab) | The red channel of the color. |
green | int (opens in a new tab) | The green channel of the color. |
blue | int (opens in a new tab) | 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)
View source (opens in a new tab)
Summary: Creates a SplatColor from the RGB values.
Parameters
| Name | Type | Description |
|---|---|---|
alpha | int (opens in a new tab) | The alpha channel of the color. |
red | int (opens in a new tab) | The red channel of the color. |
green | int (opens in a new tab) | The green channel of the color. |
blue | int (opens in a new tab) | 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)
View source (opens in a new tab)
Summary: Creates a new SplatColor from another SplatColor, replacing its alpha with one specified.
Parameters
| Name | Type | Description |
|---|---|---|
alpha | int (opens in a new tab) | 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)
View source (opens in a new tab)
Summary: Creates a new SplatColor from the specified int based ARGB value.
Parameters
| Name | Type | Description |
|---|---|---|
argb | uint (opens in a new tab) | The int containing the ARGB values. |
Returns: SplatColor -- The new SplatColor.