Image.loadFromMemory

Load the image from a file in memory.

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
loadFromMemory
(
const(void)[] data
)

Parameters

data const(void)[]

Data file in memory to load

Return Value

Type: bool

true if loading succeeded, false if it failed

Meta