Here you can find the source of rgbFromColorInt(int c)
public final static int[] rgbFromColorInt(int c)
//package com.java2s; //License from project: Open Source License public class Main { public final static int[] rgbFromColorInt(int c) { return new int[] { redFromColorInt(c), greenFromColorInt(c), blueFromColorInt(c) }; }/*from w w w .j av a 2 s . co m*/ public final static int redFromColorInt(int c) { return (c >> 16) & 0xFF; } public final static int greenFromColorInt(int c) { return (c >> 8) & 0xFF; } public final static int blueFromColorInt(int c) { return c & 0xFF; } }