Class HslaColor
Class HslaColor
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
Klass för att representera HSLA-färg (Hue, Saturation, Lightness, Alpha)
public class HslaColor
Arv
Ärvt Medlemmar
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Konstruktörer
HslaColor(int, int, int, float)
Konstruktor för HslaColor
public HslaColor(int h, int s, int l, float a)
Parametrar
h
int
Hue [0, 360]
s
int
Saturation [0, 100]
l
int
Lightness [0, 100]
a
float
Alpha (opacitet) [0.0f, 1.0f]
Fält
A
Alpha (opacitet) [0.0f, 1.0f]
public float A
Fältvärde
H
Hue [0, 360]
public readonly int H
Fältvärde
L
Lightness [0, 100]
public readonly int L
Fältvärde
S
Saturation [0, 100]
public readonly int S
Fältvärde
Metoder
ConvertHslaToRgba(HslaColor)
Använder https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
public static Color ConvertHslaToRgba(HslaColor hslaColor)
Parametrar
hslaColor
HslaColor
HSLA-färg att konvertera
Returnerar
Färg
Färg med RGBA-värden