I am reading pixel color in a BufferedImage as follows:
..... InputStream is = new BufferedInputStream(conn.getInputStream()); BufferedImage image = ImageIO.
int alpha = (colour>>24) & 0xff;
The result is also a value ranging from 0 (completely transparent) to 255 (completely opaque).