Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining which image was clicked on.
Message
From
27/03/2003 12:38:38
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00770803
Message ID:
00770836
Views:
11
>I am not quite sure why do you need the color on the clicked area. Whether sys(1270) is not enough?

I am not so much concerned as to the color other than it is the transparenvy color or not. Since my image contorls overlap, I can not use SYS(1270). I am looking for the first image control that contains a non-white (not transparency) color at the location clicked on. This is akin to a mapped image in IE or Netscape.

Imagine a hillside broken into several irregularly shaped areas. Each area will have a number of images to show the change over time relative to tree growth and harvest (all of which have a white (transparent) background. I need to select different areas by clicking on them. Remember, the image controls overlap due to the irregular shape of the areas. That prevents me from just using the click method in the image control. I figured if I could determine which image contains the non-white pixel at that location (x,y) that would be the image control to use its Click() method.

Todd Cottengim
Alpine Land Information Services
Previous
Reply
Map
View

Click here to load this message in the networking platform