T-Fox
T-Fox

Reputation:

How do I use an image Hot Spot in C#?

I'm trying to use Hot Spots in C# to detect a mouse click on a betting table.

Upvotes: 0

Views: 1164

Answers (1)

Dave Swersky
Dave Swersky

Reputation: 34810

You should be able to define a "hot spot" with the following:

  • Two points defining the upper-left and lower-right of a "bounding box"
  • An offset defining the location of the upper-left of the bounding box as it relates to the farthest upper-left point of your image

If this is a Windows Forms app, you should be able to use a transparent image to "highlight" the area when the user mouses over it. There are other techniques for this in web application using javascript.

Upvotes: 1

Related Questions