Get RGB color of a specific screen location

Phil Davis revdev at pdslabs.net
Mon Dec 31 12:50:54 EST 2018


set the screenMouseLoc to globalLoc(tLocWithinMyStack)
put the mouseColor into tTheColorAtThatScreenLoc

Phil Davis


On 12/31/18 9:24 AM, Beat Cornaz via use-livecode wrote:
> How do I get the RGB color of a pixel of an image? I know the function the
> MouseColor, which gives me the RGB numbers under the cursor. What I need is
> to get the RGB of a specific screen location - I need to make an avarage of
> e.g. 5x5 pixels. So how do I get the RGB numbers of e.g. location  "30,200"?
>
> Cheers, Beat
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>

-- 
Phil Davis





More information about the use-livecode mailing list