Zen API

- Home
- Topics
- Types
- Files

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. Currently, only the BMP (.bmp) format is supported.

Parameters

  image | Receives the constructed image object.
  fileName | File path.
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.