Java examples for 2D Graphics:Color RGB
get Green
//package com.java2s; public class Main { public static float getGreen(int Color) { float Green = (float) (Color & 255) / 255.0F; return Green * 1.0F; }/* www . j a v a2s . c om*/ }