Function savePNG

Wraps IMG_SavePNG which saves a dsdl.Surface image into a PNG file in the filesystem

void savePNG (
  Surface surface,
  string file
) @trusted;

Parameters

NameDescription
surface given dsdl.Surface of the image to save
file target file path to save

Throws

dsdl.SDLException if failed to save