Color green Intensity - Android Graphics

Android examples for Graphics:Color RGB Value

Description

Color green Intensity

Demo Code


//package com.java2s;
import android.graphics.Color;

public class Main {
    public static float greenIntensity(int color) {
        return ((float) Color.green(color)) / 255;
    }//from w  ww  .j  av a  2 s. c om
}

Related Tutorials