VG3_image_load()Load an image from file.
void * VG3_image_load(void *wstruct, const char *filename, int rdonly)
|filename||Image-file, must be in the BMP format|
|rdonly||Whether the image shall be read-only, which means all loaded images of this file share the same data|
Returns a pointer to the loaded image or NULL on failure.
On error VG3_errmsg() returns: EINVAL - error in argument ENOSYS - cannot create image ENOMEM - cannot get memory
Load an image from file and return pointer to it. If the image is loaded read-only, other read-only images of the same file share the same data, this will reduce memory, but these images cannot be modified.