}
public static java.awt.Image makeGrayTransparent(byte[] imageData) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
java.awt.Image img = toolkit.createImage(imageData);
ImageFilter filter = new RGBImageFilter() {
public final int filterRGB(int x, int y, int rgb)
{
int r = (rgb & 0xFF0000) >> 16;
int g = (rgb & 0xFF00) >> 8;