-
Enhancement
-
Resolution: Won't Fix
-
P5
-
None
-
5.0
-
x86
-
windows_xp
A DESCRIPTION OF THE REQUEST :
Could you please add the following functions to java.awt.Color? They take the components of a color and calculate the coresponding color integer value.
public static int getRGB(float red, float green, float blue);
public static int getRGB(float red, float green, float blue, float alpha);
public static int getRGB(int red, int green, int blue);
public static int getRGB(int red, int green, int blue, int alpha);
JUSTIFICATION :
This will eliminate the need to create new color objects simply to convert component into into the coresponding color.
###@###.### 2005-07-01 12:34:48 GMT
Could you please add the following functions to java.awt.Color? They take the components of a color and calculate the coresponding color integer value.
public static int getRGB(float red, float green, float blue);
public static int getRGB(float red, float green, float blue, float alpha);
public static int getRGB(int red, int green, int blue);
public static int getRGB(int red, int green, int blue, int alpha);
JUSTIFICATION :
This will eliminate the need to create new color objects simply to convert component into into the coresponding color.
###@###.### 2005-07-01 12:34:48 GMT
- relates to
-
JDK-5095570 Color object should return a hex via some method like getHex()
- Closed
-
JDK-6266346 Provide a factory methods only for getting Color
- Closed