set Green value for a color - Android Graphics

Android examples for Graphics:Color RGB Value

Description

set Green value for a color

Demo Code


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

public class Main {
    public static int setGreen(int color, int value) {
        return Color.argb(Color.alpha(color), Color.red(color), value,
                Color.blue(color));
    }/*from  w  w  w. ja  v a  2s.  co  m*/
}

Related Tutorials