Image.alphaMask(otherImage); and Image.colorAt(x,y); demo.

Move mouse over the image, on almost transparent pixels you should see cursor change.

Mask used: