Here you can find the source of toInt(int[] rgb)
public static int toInt(int[] rgb)
//package com.java2s; //License from project: Apache License public class Main { public static int toInt(int[] rgb) { return toInt(rgb[0], rgb[1], rgb[2]); }//from www . ja v a 2 s . co m public static int toInt(int r, int g, int b) { return toInt(255, r, g, b); } public static int toInt(int a, int r, int g, int b) { return (a << 24) | (r << 16) | (g << 8) | (b << 0); } }