argb Color Alpha - Android Graphics

Android examples for Graphics:Color Alpha

Description

argb Color Alpha

Demo Code


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

public class Main {

    public static int argbColorAlpha(int color, int alpha) {
        int r = Color.red(color);
        int g = Color.green(color);
        int b = Color.blue(color);
        return Color.argb(alpha, r, g, b);
    }//w  w w. j  a  v a 2  s.  c o m
}

Related Tutorials