Skip to main content

FromArgb Method

Creates a Color from alpha, red, green and blue components.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static Color FromArgb(
byte a,
byte r,
byte g,
byte b
)

Parameters

  Byte
The alpha component.
  Byte
The red component.
  Byte
The green component.
  Byte
The blue component.

Return Value

Color
The color.

See Also

Reference

Color Structure
Avalonia.Media Namespace