Struct ChartColor
Namespace: VelloSharp.ChartEngine
Assembly: VelloSharp.ChartEngine.dll
Represents an RGBA color used for chart rendering.
public readonly record struct ChartColor : IEquatable<ChartColor>
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ChartColor(byte, byte, byte, byte)
Represents an RGBA color used for chart rendering.
public ChartColor(byte R, byte G, byte B, byte A = 255)
Parameters
R
byte
G
byte
B
byte
A
byte
Properties
A
public byte A { get; init; }
Property Value
B
public byte B { get; init; }
Property Value
G
public byte G { get; init; }
Property Value
R
public byte R { get; init; }
Property Value
Methods
FromArgb(byte, byte, byte, byte)
public static ChartColor FromArgb(byte a, byte r, byte g, byte b)
Parameters
a
byte
r
byte
g
byte
b
byte
Returns
FromRgb(byte, byte, byte)
public static ChartColor FromRgb(byte r, byte g, byte b)
Parameters
r
byte
g
byte
b
byte