create Gray Pixel - Android Graphics

Android examples for Graphics:Pixel

Description

create Gray Pixel

Demo Code


//package com.java2s;

public class Main {
    public static final int createGrayPixel(int color) {
        return (0xFF << 24) | (color << 16) | (color << 8) | color;
    }// w ww  .j a va 2s  . c  o m
}

Related Tutorials