imFileLoadBitmap

Loads an image from an already open file, but forces the image to be a bitmap.\n * The returned imagem will be always a Bitmap image, with color_space RGB, MAP, GRAY or BINARY, and data_type IM_BYTE. \n * index specifies the image number between 0 and image_count-1. \n * Returns NULL if failed. * Attributes from the file will be stored at the image. * See also \ref imErrorCodes. * * \verbatim ifile:LoadBitmap([index: number]) -> image: imImage, error: number [in Lua 5] \endverbatim * Default index is 0. * \ingroup imgfile

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

Meta