savePNG

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

@safe @trusted
static if(bindSDLImage)
void
savePNG

Parameters

surface Surface

given dsdl2.Surface of the image to save

file string

target file path to save

Throws

dsdl2.SDLException if failed to save

Meta