Color alpha Intensity - Android Graphics

Android examples for Graphics:Color Alpha

Description

Color alpha Intensity

Demo Code


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

public class Main {
    public static float alphaIntensity(int color) {
        return ((float) Color.alpha(color)) / 255;
    }//  w ww .  j  ava 2 s  .co m
}

Related Tutorials