Java examples for 2D Graphics:Color RGB
get Blue
//package com.java2s; public class Main { public static float getBlue(int Color) { float Blue = (float) (Color >> 8 & 255) / 255.0F; return Blue * 1.0F; }/*from www .j av a 2 s. com*/ }