Here you can find the source of rgb(int argb)
public static int[] rgb(int argb)
//package com.java2s; //License from project: Apache License public class Main { public static int[] rgb(int argb) { return new int[] { (argb >> 16) & 0xFF, (argb >> 8) & 0xFF, argb & 0xFF }; }//from www . ja v a 2 s . c o m }