-
BitBlt Question!!
Hi,
I have a main pic on my form called MainPic. I also have a number of images that I have BitBlt onto the picture box.
There is a label also.
What I want is when the mouse is moved over one of the pics that have been BitBlt I want the something to appear in label...
E.g
If a BitBlt a pic of a car onto a grass background, when i move mouse over car I want "Car" to appear in Label. If I moved it over a house i want "House" in label, etc..
Any info on this! Thanks a Lot!
Mark
-
A few things come to mind, however, unless all your objects are rectangular, you would have to build regions for each one. For rectangles only, I might use an array of rect structures, and itterate through them, testing each with PtInRect. For regions, I'm not quite sure of all the stuff I would end up doing, but I guess I would start by taking a look at path functions, like BeginPath, EndPath, Path2Region, and also PtInRegion.