Here you can find the source of colorFromRGB(int r, int g, int b)
public static int colorFromRGB(int r, int g, int b)
//package com.java2s; //License from project: LGPL public class Main { public static int colorFromRGB(int r, int g, int b) { return (r * 65536) + (g * 256) + b; }//from ww w.j a va 2s . co m }