HslaColor
Contents
[
Hide
]Inheritance: java.lang.Object
public class HslaColor
Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)
Constructors
Constructor | Description |
---|---|
HslaColor(int h, int s, int l, float a) | Constructor for HslaColor |
Fields
Field | Description |
---|---|
A | Alpha (opacity) [0.0f, 1.0f] |
H | Hue [0, 360] |
L | Lightness [0, 100] |
S | Saturation [0, 100] |
Methods
HslaColor(int h, int s, int l, float a)
public HslaColor(int h, int s, int l, float a)
Constructor for HslaColor
Parameters:
Parameter | Type | Description |
---|---|---|
h | int | Hue [0, 360] |
s | int | Saturation [0, 100] |
l | int | Lightness [0, 100] |
a | float | Alpha (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:
Parameter | Type | Description |
---|---|---|
hslaColor | com.aspose.barcode.generation.HslaColor | HSLA color to convert |
Returns: java.awt.Color - Color with RGBA values
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |