Skip to content

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)

View source

Summary: Creates a SplatColor from the RGB values. The alpha will be set to 255 for full alpha.

Parameters

NameTypeDescription
redintThe red channel of the color.
greenintThe green channel of the color.
blueintThe 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

Summary: Creates a SplatColor from the RGB values.

Parameters

NameTypeDescription
alphaintThe alpha channel of the color.
redintThe red channel of the color.
greenintThe green channel of the color.
blueintThe 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

Summary: Creates a new SplatColor from another SplatColor, replacing its alpha with one specified.

Parameters

NameTypeDescription
alphaintThe 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

Summary: Creates a new SplatColor from the specified int based ARGB value.

Parameters

NameTypeDescription
argbuintThe int containing the ARGB values.

Returns: SplatColor -- The new SplatColor.