PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Make snapshot of current screen when start application ?

Hi all !
I want to know if it's possible to make a snapshot (in a Surface object) of the full current screen displayed before the first draw operation of my application ?
And of course how can I do it...
Thanks.
You can get a Surface pointer to the front buffer by calling Display::GetFrontBuffer().

Be careful though, this is not supported on all Pocket PC and might return NULL in some cases. But it should work on all devices where GAPI is not buffered and the Casio E-115/E-125.

You can then save the picture using the provided function (check in image.h).
Thanks a lot for the quick reply. I have test this function but only in the PPC2002 emulator, so it's probably the reason why I get a black image !
I will test it now on real devices. Do you know if it's work with Toshiba e740 ?