Class HslaColor
Class HslaColor
Der Name: Aspose.BarCode.Generation Zusammensetzung: Aspose.BarCode.dll (25.4.0)
Klasse für die HSLA-Farbe (Hue, Saturation, Lightness, Alpha)
public class HslaColor
Inheritance
Vererbte Mitglieder
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
HslaColor(int, int, int, float)
Konstruktor für HslaColor
public HslaColor(int h, int s, int l, float a)
Parameters
h
int
Hue [ 0, 360]
s
int
Saturation [ 0, 100]
l
int
Leichtheit [0, 100]
a
float
Alpha (Opazität) [0.0f, 1.0f]
Fields
A
Alpha (Opazität) [0.0f, 1.0f]
public float A
Feldwert
H
Hue [ 0, 360]
public readonly int H
Feldwert
L
Leichtheit [0, 100]
public readonly int L
Feldwert
S
Saturation [ 0, 100]
public readonly int S
Feldwert
Methods
ConvertHslaToRgba(HslaColor)
Verwenden Sie https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
public static Color ConvertHslaToRgba(HslaColor hslaColor)
Parameters
hslaColor
HslaColor
HSLA Farbe zu konvertieren
Returns
Color
Farbe mit RGBA-Wert