Image.saveToFile

Save the image to a file on disk.

The format of the image is automatically deduced from the extension. The supported image formats are bmp, png, tga and jpg. The destination file is overwritten if it already exists. This function fails if the image is empty.

class Image
bool
saveToFile
(
const(char)[] filename
)

Parameters

filename
Type: const(char)[]

Path of the file to save

Return Value

Type: bool

true if saving was successful

Meta