Rgb24Color
Leave feedback
On this page
Inheritance: java.lang.Object
public class Rgb24Color
Represents 24-bit color in RGB format, with 8 bits per every channel (Red, Green, Blue). Does not support transparency. Designed to be useful for (but not limited to) CSS operations. See more: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
| Constructor | Description |
|---|---|
| Rgb24Color(int r, int g, int b) |
public Rgb24Color(int r, int g, int b)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| r | int | |
| g | int | |
| b | int |
public Rgb24Color toInternal()
Returns: Rgb24Color
public static Rgb24Color fromInternal(Rgb24Color color)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| color | com.groupdocs.htmlcss.drawing.Rgb24Color |
Returns: Rgb24Color
public static Rgb24Color fromRgb(int red, int green, int blue)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| red | int | |
| green | int | |
| blue | int |
Returns: Rgb24Color
public int getR()
Returns: int
public int getG()
Returns: int
public int getB()
Returns: int
public boolean isDefault()
Returns: boolean
public float getBrightness()
Returns: float
public float getHue()
Returns: float
public float getSaturation()
Returns: float
public int toArgb()
Returns: int
public int hashCode()
Returns: int
public boolean equals(Object obj)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
public String toRGB()
Returns: java.lang.String
public String toHex()
Returns: java.lang.String
public String toString()
Returns: java.lang.String
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.