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
(
string fileName
)

Return Value

Type: bool

True if loading succeeded, false if it failed

Meta