Skip to main content

FromRgb Method

Creates a Color from red, green and blue components.

Definition​

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

public static Color FromRgb(
byte r,
byte g,
byte b
)

Parameters​

  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