ScreenGrab (full OS, not just app)?

BlitzMax Forums/BlitzMax Programming/ScreenGrab (full OS, not just app)?

ima747(Posted 2010) [#1]
Wondering if anyone has any code similar to http://developer.apple.com/library/mac/#samplecode/OpenGLScreenSnapshot/Introduction/Intro.html but cross platform in bmax (mac and windows, linux would be nice but not required...) to grab the screen to a pixmap or similar that can then be written to disk?

That's a full SCREEN shot, not just a grab from the back buffer etc. as in it needs to grab the whole computer's screen preferably without any graphics context created...

I'm guessing a cross platform implementation would be troublesome... and even that above link is in a lot of Objective C so I don't know how easy it would be to port to something that could be linked in with bmax...


xlsior(Posted 2010) [#2]
Download the chaos.desktopext module here: http://www.chaos-interactive.de/en/modules/

It is cross platform and can take screenshots of whatever is currently on the screen. Even supports multiple displays.

Alternatively, there's Fabian's fmc.mod which can do it to, but IIRC it is not cross platform, and may need some small tweaks before it will compile with the latest Blitzmax releases on Windows.


ima747(Posted 2010) [#3]
I forgot all the magic in chaos.desktopext when official desktop resolution support was added and look how I suffer as a result. My penance now served, downloading!