QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: lawsonm1 on February 14, 2020, 10:19:15 pm

Title: Screen capture ot a file?
Post by: lawsonm1 on February 14, 2020, 10:19:15 pm
So I got a X-Y plotting program (LINEGRPH) from The Programmer's Corner website (https://www.pcorner.com/list/BASIC), written by ER Sebol (1989), and modified it to display the data I am pulling from a web site. Once the data gets graphed, I'd like to have a snapshot of the graph be able to be saved as some type of image file (jpg, bmp, gif, etc), by just pressing a key (say the number 3). I see the _SCREENIMAGE command, but I'm trying to figure out how to take the imageHandle& and save it to disk.

I'm sure there is a bit of manipulation to be done. And I'm sure the commands are right under my nose. But, anyone have any thoughts or suggestions? Thanks, Mike
Title: Re: Screen capture ot a file?
Post by: Pete on February 14, 2020, 10:29:03 pm
http://www.qb64.org/wiki/CLIPBOARDIMAGE

http://www.qb64.org/wiki/CLIPBOARDIMAGE_(function)
Title: Re: Screen capture ot a file?
Post by: FellippeHeitor on February 14, 2020, 10:43:41 pm
Steve's "SaveImage" library: https://www.qb64.org/forum/index.php?topic=1651.0