Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find RGB under the mouse pointer
Message
De
02/05/2006 16:24:39
 
 
À
02/05/2006 13:03:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Divers
Thread ID:
01118470
Message ID:
01118563
Vues:
16
>how to find RGB under the mouse pointer.
>Rajesh

A FORM.POINT(x,y) returns the numeric version RGB the value at a specific location. Then you can use the RGBCOMP function from FoxTools.fll to get the individual Red, Green, Blue values.
c = thisform.Point( x, y )
store 0 to r,g,b
set library to home()+"Foxtools.fll"
RGBcomp(c,@r,@g,@b)
? r,g,b
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform