Color red Intensity - Android Graphics

Android examples for Graphics:Color RGB Value

Description

Color red Intensity

Demo Code


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

public class Main {
    public static float redIntensity(int color) {
        return ((float) (Color.red(color))) / 255;
    }/*from   w w  w .  j  ava 2  s .  c  o  m*/
}

Related Tutorials