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
const
bool
saveToFile
(
const(char)[] filename
)

Parameters

filename const(char)[]

Path of the file to save

Return Value

Type: bool

true if saving was successful

Meta