Class HslaColor
Class HslaColor
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.0)
Clase para representar el color HSLA (Matiz, Saturación, Luminosidad, Alfa)
public class HslaColor
Herencia
Miembros Heredados
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructores
HslaColor(int, int, int, float)
Constructor para HslaColor
public HslaColor(int h, int s, int l, float a)
Parámetros
h
int
Matiz [0, 360]
s
int
Saturación [0, 100]
l
int
Luminosidad [0, 100]
a
float
Alfa (opacidad) [0.0f, 1.0f]
Campos
A
Alfa (opacidad) [0.0f, 1.0f]
public float A
Valor del Campo
H
Matiz [0, 360]
public readonly int H
Valor del Campo
L
Luminosidad [0, 100]
public readonly int L
Valor del Campo
S
Saturación [0, 100]
public readonly int S
Valor del Campo
Métodos
ConvertHslaToRgba(HslaColor)
Usa https://es.wikipedia.org/wiki/HSL_y_HSV#HSL_a_RGB
public static Color ConvertHslaToRgba(HslaColor hslaColor)
Parámetros
hslaColor
HslaColor
Color HSLA a convertir
Retorna
Color
Color con valores RGBA