Here you can find the source of RGBtoInt(int red, int green, int blue)
public static int RGBtoInt(int red, int green, int blue)
//package com.java2s; /**/* ww w . j a va2 s.c o m*/ * @author Lerp * @license Lesser GNU Public License v3 http://www.gnu.org/licenses/lgpl.html */ public class Main { public static int RGBtoInt(int red, int green, int blue) { return 255 << 24 | red << 16 | +green << 8 | blue; } }