Here you can find the source of rgbToDecimal(int r, int g, int b)
public static int rgbToDecimal(int r, int g, int b)
//package com.java2s; //License from project: Open Source License public class Main { public static int rgbToDecimal(int r, int g, int b) { return b + 256 * g + 65536 * r; }/* w w w . j a va2 s . c om*/ }