Class HslaColor
Class HslaColor
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
Kelas untuk merepresentasikan warna HSLA (Hue, Saturation, Lightness, Alpha)
public class HslaColor
Pewarisan
Anggota yang Dwarisi
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Konstruktor
HslaColor(int, int, int, float)
Konstruktor untuk HslaColor
public HslaColor(int h, int s, int l, float a)
Parameter
h
int
Hue [0, 360]
s
int
Saturation [0, 100]
l
int
Lightness [0, 100]
a
float
Alpha (opacity) [0.0f, 1.0f]
Field
A
Alpha (opacity) [0.0f, 1.0f]
public float A
Nilai Field
H
Hue [0, 360]
public readonly int H
Nilai Field
L
Lightness [0, 100]
public readonly int L
Nilai Field
S
Saturation [0, 100]
public readonly int S
Nilai Field
Metode
ConvertHslaToRgba(HslaColor)
Menggunakan https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
public static Color ConvertHslaToRgba(HslaColor hslaColor)
Parameter
hslaColor
HslaColor
Warna HSLA untuk dikonversi
Mengembalikan
Warna
Warna dengan nilai RGBA