Here you can find the source of rgb2int(final int[] color)
public static int rgb2int(final int[] color)
//package com.java2s; //License from project: Apache License public class Main { public static int rgb2int(final int red, final int green, final int blue) { return (red << 16) + (green << 8) + blue; }//from w w w . j a v a 2 s. c om public static int rgb2int(final int[] color) { return (color[0] << 16) + (color[1] << 8) + color[2]; } }