int Color to Alpha - Java 2D Graphics

Java examples for 2D Graphics:Color Alpha

Description

int Color to Alpha

Demo Code


//package com.java2s;

public class Main {
    public static int toAlpha(int rgb) {
        int a = (rgb >>> 24) & 0xFF;
        return a;
    }/* www  .  j av a2 s. c  o m*/
}

Related Tutorials