get Green value From Color - Android Graphics

Android examples for Graphics:Color RGB Value

Description

get Green value From Color

Demo Code


//package com.java2s;

public class Main {
    public static int getGreenFromColor(int color) {
        return (color >> 8) & 0xFF;
    }//from w w  w  .  ja v a  2 s.  co m
}

Related Tutorials