Skip to content

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

  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)

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

NameTypeDescription
redint (opens in a new tab)The red channel of the color.
greenint (opens in a new tab)The green channel of the color.
blueint (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

NameTypeDescription
alphaint (opens in a new tab)The alpha channel of the color.
redint (opens in a new tab)The red channel of the color.
greenint (opens in a new tab)The green channel of the color.
blueint (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

NameTypeDescription
alphaint (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

NameTypeDescription
argbuint (opens in a new tab)The int containing the ARGB values.

Returns: SplatColor -- The new SplatColor.