imFileReadImageInfo

Reads the image header if any and returns image information. \n * Reads also the extended image attributes, so other image attributes will be available only after calling this function. \n * Returns an error code. * index specifies the image number between 0 and image_count-1. \n * Some drivers reads only in sequence, so "index" can be ignored by the format driver. \n * Any parameters can be NULL. This function must be called at least once, check each format documentation. * See also \ref imErrorCodes, \ref imDataType, \ref imColorSpace and \ref imColorModeConfig. * * \verbatim ifile:ReadImageInfo([index: number]) -> error: number, width: number, height: number, file_color_mode: number, file_data_type: number [in Lua 5] \endverbatim * Default index is 0. * \ingroup file

extern (C) @safe nothrow
int
imFileReadImageInfo

Meta