Skip to content

Color.FromArgb(int) method

Defined in

Type: Color Namespace: System.Drawing Assembly: Splat.Drawing.dll

Applies to

net10.0-android36.0, net10.0-windows10.0.17763, net10.0-windows10.0.19041, net9.0-windows10.0.17763, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net8.0-windows10.0.17763, net462, net481

Overloads

  • 1. public static Color FromArgb(int argb)
  • 2. public static Color FromArgb(int alpha, Color baseColor)
  • 3. public static Color FromArgb(int red, int green, int blue)
  • 4. public static Color FromArgb(int alpha, int red, int green, int blue)

1. Overload

public static Color FromArgb(int argb)

View source

Parameters

NameTypeDescription
argbint--

Returns: Color

2. Overload

public static Color FromArgb(int alpha, Color baseColor)

View source

Parameters

NameTypeDescription
alphaint--
baseColor[Color](#--

Returns: Color

3. Overload

public static Color FromArgb(int red, int green, int blue)

View source

Parameters

NameTypeDescription
redint--
greenint--
blueint--

Returns: Color

4. Overload

public static Color FromArgb(int alpha, int red, int green, int blue)

View source

Parameters

NameTypeDescription
alphaint--
redint--
greenint--
blueint--

Returns: Color