create Pixel from color value - Android Graphics

Android examples for Graphics:Color Value

Description

create Pixel from color value

Demo Code


//package com.java2s;

public class Main {
    public static int createPixel(int red, int green, int blue, int alpha) {
        return (0xFF << 24) | (red << 16) | (green << 8) | blue;
    }//  w  w w . j  a va2s .c  o  m
}

Related Tutorials