Forcing a "PrintScreen" and saving the result

BlitzMax Forums/BlitzMax Programming/Forcing a "PrintScreen" and saving the result

Damien Sturdy(Posted 2006) [#1]
Hi All!


I need to grab a print-screen of a window my app is using. I'm not using max2D but instead I'm rendering SOW onto a canvas- and this seems to make grabbing a screenshot impossible.

So I'd like to try a workaround- Force a printscreen of the window, and grab and save that instead.

I tried bitblt yesterday, no luck. it copes to another canvas OK but the saved file is just black, but a true windows print-screen grabs the image fine.

How would I go about doing this?

Thanks for your help,


ozak(Posted 2006) [#2]
Well. If you're windows only, see the GDI functions for capturing a window.

Check out my AVI tool library here, which can save an AVI file from any window. Perhaps you could hack something from there :)
http://www.furi.dk/?page_id=56


Damien Sturdy(Posted 2006) [#3]
Windows only for now. Thanks, I will look into it.


[edit]

Lots to choose from, Im not sure where to go next.