Function in ldk_image.h

ldk_image_load

Load an image file. 16-bit sources remain RGBA16 UNORM; other sources use RGBA8.

LDK_API LDKImage * ldk_image_load(char const *path);

Parameters

char const *path
Path identifying the file or resource.

Returns

Pointer to the requested object or data; NULL when unavailable.