ArcBasicDocs

SaveBuffer

Saves a buffer as an image file.

SaveBuffer ( buffer,filename$ )

Parameters

buffer
the buffer to save.
filename$
the file to save to.

Description

Saves a buffer as a picture file, such as a screenshot of FrontBuffer, and gives back 1 if it worked. The type of file comes from the name's ending: .png, .jpg, .bmp or .webp. In a finished game the file goes in the player's data folder.

See also