set Blue value for a color - Android Graphics

Android examples for Graphics:Color RGB Value

Description

set Blue value for a color

Demo Code


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

public class Main {
    public static int setBlue(int color, int value) {
        return Color.argb(Color.alpha(color), Color.red(color),
                Color.green(color), value);
    }/* w  w w . j  a  va  2 s . c o m*/
}

Related Tutorials