Skip to main content

Color Struct

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Media

Represents an ARGB color.

public struct Color

Properties

A

public byte A { get; set; }

The alpha (opacity) component of the color.

R

public byte R { get; set; }

The red component of the color.

G

public byte G { get; set; }

The green component of the color.

B

public byte B { get; set; }

The blue component of the color.

Methods

FromArgb(byte a, byte r, byte g, byte b)

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

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

Returns Color

FromRgb(byte r, byte g, byte b)

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

Creates an opaque color from red, green and blue components.

Returns Color