Here you can find the source of combine(int r, int g, int b)
public static int combine(int r, int g, int b)
//package com.java2s; //License from project: Open Source License public class Main { public static int combine(int r, int g, int b) { int rgb = (r & 0xFF) << 16 | (g & 0xFF) << 8 | b & 0xFF; return rgb; }/* w w w. j a va2 s . co m*/ }