getSelectionBounds(x, y, w, h); i = 0; if (getPixel(x,y)!=0) i+=1; if (getPixel(x+1,y)!=0) i+=2; if (getPixel(x+2,y)!=0) i+=4; if (getPixel(x+2,y+1)!=0) i+=8; if (getPixel(x+2,y+2)!=0) i+=16; if (getPixel(x+1,y+2)!=0) i+=32; if (getPixel(x+0,y+2)!=0) i+=64; if (getPixel(x+0,y+1)!=0) i+=128; showStatus(i%32+" "+i>>5);