loadImageFromMemory

fnImage loadImageFromMemory(const(ubyte)[] data, ImageFormat format)

Loads an image from memory data with explicit format.

Parameters

dataImage file data
formatImage format

Returns

Image object, or null if loading failed or format unsupported