OpenGL Screen Capture

BlitzMax Forums/BlitzMax OpenGL Programming/OpenGL Screen Capture

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can now use:

Local PX:TPixmap=Grab Pixmap(0,0,640,480) 'whatever area you want to save
Print SavePixmapPNG(PX,"Screengrab.png",9) '0-9 compression value

I was delighted to find out that SavePixmapPNG is now a standard function as part of the PNG loader module. :-) No sign of SavePixmapJPG() or a generic SavePixmap() yet. ;-)