How to SaveBuffer()

BlitzMax Forums/BlitzMax Programming/How to SaveBuffer()

Captain Wicker (crazy hillbilly)(Posted 2012) [#1]
How can I SaveBuffer() with blitzmax?


GfK(Posted 2012) [#2]
See GrabPixmap and SavePixmapPNG.


Captain Wicker (crazy hillbilly)(Posted 2012) [#3]
GfK, I have looked over the documentation. Can you provide an example of this in use?


GfK(Posted 2012) [#4]
Well, both commands are documented. Grabpixmap is used to grab the entire screen (or a portion of) into a pixmap. Savepixmappng saves the pixmap to a specified file, in png format.


Captain Wicker (crazy hillbilly)(Posted 2012) [#5]
Got it! :D Can I save in a different image format besides png? What image formats are supported? Sorry, im very used to saving images in blitzbasic and have no experience doing so in blitzmax. Thanks GfK! :D


GfK(Posted 2012) [#6]
Well, theres also Savepixmapjpeg but png is a lossless format so thats generally what i use.