Class HslaColor
Class HslaColor
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.8.0)
Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)
public class HslaColorInheritance
Inherited Members
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)
Constructor for HslaColor
public HslaColor(int h, int s, int l, float a)Parameters
h int
Hue [0, 360]
s int
Saturation [0, 100]
l int
Lightness [0, 100]
a float
Alpha (opacity) [0.0f, 1.0f]
Fields
A
Alpha (opacity) [0.0f, 1.0f]
public float AField Value
H
Hue [0, 360]
public readonly int HField Value
L
Lightness [0, 100]
public readonly int LField Value
S
Saturation [0, 100]
public readonly int SField Value
Methods
ConvertHslaToRgba(HslaColor)
Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
public static Color ConvertHslaToRgba(HslaColor hslaColor)Parameters
hslaColor HslaColor
HSLA color to convert
Returns
Color
Color with RGBA values