Function savePNG

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

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

Parameters

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

Throws

dsdl2.SDLException if failed to save