Android examples for Graphics:Color Alpha
Color alpha Intensity
//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 }