Skip to content

surf:save

CrazedProgrammer edited this page Apr 23, 2017 · 2 revisions

surf:save([file, format])

  • file (string)
    File path
  • format (string)
    Image format (see below)

Saves the surface into the image format and returns the image data (string).
If a file path is not supplied, it doesn't save to a file.
Supported formats:

Clone this wiki locally