Java Utililty Methods RGB Color Create

List of utility methods to do RGB Color Create

Description

The list of methods to do RGB Color Create are organized into topic(s).

Method

StringtoRgbText(int rgb)
Convert an integer to an HTML RGB value.
if (rgb > 0xFFFFFF)
    rgb = 0xFFFFFF;
if (rgb < 0)
    rgb = 0;
String str = "000000" + Integer.toHexString(rgb); 
return "#" + str.substring(str.length() - 6);