Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining which image was clicked on.
Message
De
27/03/2003 11:58:01
Todd Cottengim
Alpine Land Information Services
Redding, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Determining which image was clicked on.
Divers
Thread ID:
00770803
Message ID:
00770803
Vues:
50
I am creating an application that displays a number of images as a mosaic. The images displayed are GIFs with white as the transparency color. The image controls overlap each other since the non-white area of the images displayed are irregular shapes.

A simplified example would be this:
A form contains four image controls of the same size (height and width) occupying the same location (same top and left). Four GIFs of the same size (also the same size as the image control) are created as follows: The first is solid red in the upper left quarter of the image with the rest being white (transparent). The second is blue in the upper right, the third green in the lower left, and the fourth is yellow in the lower right.

I would like to be able to determine if the corrdinate pair (x,y) I have clicked at is a white pixel or not. I plan on adding a method (call it CheckColor) to the image control that will detwermine the color of the coordinates passed to it. A second method on the image control would be called if the corrdinate pair is not white. A method on a shape covering all the images would process each image's CheckColor until one returns a possitive result or all the iamge control have been checked.

BTW: The Point() method on the form will not suffice.

Any suggestions?

Todd Cottengim
Alpine Land Information Services
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform