Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find RGB under the mouse pointer
Message
From
02/05/2006 16:24:39
 
 
To
02/05/2006 13:03:23
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Miscellaneous
Thread ID:
01118470
Message ID:
01118563
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform