HslaColor

Inheritance: java.lang.Object

public class HslaColor

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

Constructors

ConstructorDescription
HslaColor(int h, int s, int l, float a)Constructor for HslaColor

Fields

FieldDescription
AAlpha (opacity) [0.0f, 1.0f]
HHue [0, 360]
LLightness [0, 100]
SSaturation [0, 100]

Methods

MethodDescription
convertHslaToRgba(HslaColor hslaColor)Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

HslaColor(int h, int s, int l, float a)

public HslaColor(int h, int s, int l, float a)

Constructor for HslaColor

Parameters:

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

A

public float A

Alpha (opacity) [0.0f, 1.0f]

H

public final int H

Hue [0, 360]

L

public final int L

Lightness [0, 100]

S

public final int S

Saturation [0, 100]

convertHslaToRgba(HslaColor hslaColor)

public static Color convertHslaToRgba(HslaColor hslaColor)

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

Parameters:

ParameterTypeDescription
hslaColorcom.aspose.barcode.generation.HslaColorHSLA color to convert

Returns: java.awt.Color - Color with RGBA values

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int