get Green from color - Android Graphics

Android examples for Graphics:Color RGB Value

Description

get Green from color

Demo Code


//package com.java2s;

public class Main {

    public static int getGreen(int color) {
        int green = (color & 0x00ff00) >> 8;
        return green;
    }//ww w . ja  va2s  .  c o m
}

Related Tutorials