Rediger

Del via


Color.FromArgb(Byte, Byte, Byte, Byte) Method

Definition

Creates a new Color struct by using the specified sRGB alpha channel and color channel values.

public:
 static Windows::UI::Color FromArgb(System::Byte a, System::Byte r, System::Byte g, System::Byte b);
public static Windows.UI.Color FromArgb (byte a, byte r, byte g, byte b);
static member FromArgb : byte * byte * byte * byte -> Windows.UI.Color
Public Shared Function FromArgb (a As Byte, r As Byte, g As Byte, b As Byte) As Color

Parameters

a
Byte

The alpha channel, A, of the new color. The value must be between 0 and 255.

r
Byte

The red channel, R, of the new color. The value must be between 0 and 255.

g
Byte

The green channel, G, of the new color. The value must be between 0 and 255.

b
Byte

The blue channel, B, of the new color. The value must be between 0 and 255.

Returns

A Color struct with the specified values.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Color struct. For more information, see Color in the UWP API reference.

Applies to