Class HslaColor
Class HslaColor
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.2.0)
Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)
public class HslaColor
Inheritance
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 A
Field Value
H
Hue [0, 360]
public readonly int H
Field Value
L
Lightness [0, 100]
public readonly int L
Field Value
S
Saturation [0, 100]
public readonly int S
Field 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