c# - How to easily detect click inside of rectangle/image? -


When I draw an image, I know that the user can find out that the user is comparing the X to the mouse Uses the position and size of that image though there is a faster way? I know that there is an intersection method for two rectangles, thanks

Finally, it should be. Point coordinates need to be tested against rectangle coordinates, but if you already have rectangles and points, you can do if (r. Canton (p)) .

Comments