Page 1 of 1

How do I generate png snapshots from gapidraw?

PostPosted: Dec 10, 2002 @ 2:06am
by firestorm
hi, I was wondering if somebody could help me.I have written a game in gapidraw. I would like to create an animated gif of some moments of the game. How can I at run time catch snapshots of the screen and write png/etc on the fly?

Thank you for your help..
firestorm

PostPosted: Dec 10, 2002 @ 3:51pm
by ppcStudios
I did about what you are asking in pocketPachisi by using CGapiSurface::SaveSurface on each action phase in the game (dice roll, pawn movement, etc). This saves the surface as bitmap. After that its a simple process of loading them into an animated gif.

-- GR

thanks!

PostPosted: Dec 10, 2002 @ 9:47pm
by firestorm