Re: How to read rectangular part of screen, pixel-by-pixel?
- Posted by TheresNoTime Jun 22, 2013
- 1565 views
jimcbrown said...
It can be done in Euphoria. Someone wrote a program to do it as far back as 1998! http://www.RapidEuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=scapture.zip
The requested URL /scapture.zip was not found on this server.
said...
Another example on how to do this is here: http://www.RapidEuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=color.zip http://www.RapidEuphoria.com/color.zip - look at the procedure called update_magnifier in color.exw (this first grabs a screenshot, then magnifies it).
Thanks.
I realized that win-function GetDC reads the whole screen. I have not figured out yet, what is going on between GetDC and ReleaseDC.