get Red value From Color - Android Graphics

Android examples for Graphics:Color RGB Value

Description

get Red value From Color

Demo Code


//package com.java2s;

public class Main {
    public static int getRedFromColor(int color) {
        return (color >> 16) & 0xFF;
    }/*from  ww  w . j av a2 s . c om*/
}

Related Tutorials