imFileLoadImageRegion

Loads an image region 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, * or will be a Bitmap image. \n * Attributes from the file will be stored at the image. * See also \ref imErrorCodes. \n * For now, it works only for the ECW file format. * * \verbatim ifile:LoadRegion(index, bitmap, xmin, xmax, ymin, ymax, width, height: number) -> image: imImage, error: number [in Lua 5] \endverbatim * Default index is 0. * \ingroup imgfile

extern (C) @safe nothrow
imFileLoadImageRegion
(,
int index
,
int bitmap
,
int* error
,
int xmin
,
int xmax
,
int ymin
,
int ymax
,
int width
,
int height
)

Meta