Class HslaColor
Class HslaColor
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.1.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
גוון [0, 360]
s
int
סאטורציה [0, 100]
l
int
בהירות [0, 100]
a
float
אלפא (שקיפות) [0.0f, 1.0f]
Fields
A
אלפא (שקיפות) [0.0f, 1.0f]
public float A
Field Value
H
גוון [0, 360]
public readonly int H
Field Value
L
בהירות [0, 100]
public readonly int L
Field Value
S
סאטורציה [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 להמרה
Returns
Color
צבע עם ערכי RGBA