I want to be able to determine what area of the image that the user has
selected.
In this case which room was selected.
So i presume it will involve obtaining the co-ordinates from the image
and comparing these to be between certain values for each area.
Any advice on the best way to do this would be very helpful
thanks guys
void pictureBox1_Click(...)
{
// setting up watching rectangle
Rectangle yourWatchedArea = new Rectangle(0, 0, 10, 10);
Point p = pictureBox1.PointToClient(MousePosition);
if (r.Contains(p.X, p.Y)) MessageBox.Show("Watching area!");
}
Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com