Here you can find the source of rgbaToColor(int r, int g, int b, int a)
public static int rgbaToColor(int r, int g, int b, int a)
//package com.java2s; //License from project: Open Source License public class Main { public static int rgbaToColor(int r, int g, int b, int a) { return ((a << 24) & 0xFF000000) | ((r << 16) & 0xFF0000) | ((g << 8) & 0xFF00) | (b & 0xFF); }/*w w w .jav a2 s .c om*/ }