Image.loadFromFile

Load the image from a file on disk.

The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg. If this function fails, the image is left unchanged.

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

Parameters

filename
Type: const(char)[]

Path of the image file to load

Return Value

Type: bool

true if loading succeeded, false if it failed

Meta