HslaColor

HslaColor class

Namespace: Aspose.Barcode.Generation

Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)

Constructors

NameDescription
__constructConstructor for HslaColor

Methods

NameStaticDescription
convertHslaToRgbaYesUses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB

HslaColor__construct(int $h, int $s, int $l, float $a)

Constructor for HslaColor

ParameterTypeDescription
$hintHue [0, 360]
$sintSaturation [0, 100]
$lintLightness [0, 100]
$afloatAlpha (opacity) [0.0f, 1.0f]

convertHslaToRgbaconvertHslaToRgba(HslaColor $hslaColor) (static)

Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB

ParameterTypeDescription
$hslaColorHslaColorHSLA color to convert

Returns: string with RGBA values