imFileLoadImage

Loads an image from an already open file. Returns NULL if failed. \n * This will call \ref imFileReadImageInfo and \ref imFileReadImageData. \n * index specifies the image number between 0 and image_count-1. \n * The returned image will be of the same color_space and data_type of the image in the file. \n * Attributes from the file will be stored at the image. * See also \ref imErrorCodes. * * \verbatim ifile:LoadImage([index: number]) -> image: imImage, error: number [in Lua 5] \endverbatim * Default index is 0. * \ingroup imgfile

version(IM)
@nogc nothrow extern (C)
imFileLoadImage
(,
int index
,
int* error
)

Meta