View Single Post
  #2 (permalink)  
Old 07-17-2007, 05:10 AM
goldhouse goldhouse is offline
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
Please try this
Code:
if ( (mouseX >= imageX) && (mouseX < imageX+image.getWidth(this)) && (mouseY >= imageY) && (mouseY < imageY+image.getHeight(this)) ) { int alpha = (image.getRGB(mouseX-imageX, mouseY-imageY) >> 24) & 0xff; if (alpha == 0) { result = false; } else {result = true; } }
Reply With Quote