Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kImage_Import ( kImage image,
const kChar fileName,
kAlloc  allocator 
)

Loads an image from file.

The file extension is used to determine to image format. The BMP (.bmp) and PNG (.png) formats are supported.

Parameters
imageReceives the constructed image object.
fileNameFile path.
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.