Save Image?

BlitzMax Forums/BlitzMax Beginners Area/Save Image?

Grey Alien(Posted 2006) [#1]
I must be really dense here, but I want to make a screenshot and save it to disk. BlitzPlus had SaveImage but Max doesn't? So if I grab an image from the backbuffer and want to save it, how would you recommend I do this? Thanks.

P.S. I used to save as bitmap, but would prefer PNG if possible.


Suco-X(Posted 2006) [#2]
Hi
Grabpixmap and SavePixmapPng
Mfg Suco


assari(Posted 2006) [#3]
Grey Alien,
There's an example code here from my tutorial. Scroll down to Function SaveAnimation.


Grey Alien(Posted 2006) [#4]
thanks people, I was looking in the Max2D section, should looked at PixMaps.


Grisu(Posted 2006) [#5]
Has someone written a function to save images as jpg, yet?


tonyg(Posted 2006) [#6]
quite old but might help
and more recent


Grisu(Posted 2006) [#7]
Thanks TonyG.

Can't get it to work... 1.18 :/
"C:/Programme/BlitzMax/mod/brl.mod/jpgloader.mod/jpgloader.release.win32.x86.a(jpgloader.bmx.release.win32.x86.o.b)(code+0x311): undefined reference to `savejpg'"

"SavePixmapJPG" from BRL would be great!


Grey Alien(Posted 2006) [#8]
Isn't there the old JPEG licence issue to content with?