IMAGE *im_binfile( name, xs, ys, b, off )
char *in;
IMAGE *out;
int xs, ys, b, off;
IMAGE *
im_image( void *buffer, int width, int height, int bands, int format )
The parameters specify the image width, height, number of bands and offset in bytes from the start of the file.
im_image(3) makes an IMAGE deriptor from an area of pixels in memory. The memory buffer will not be freed when the IMAGE is closed, use im_add_close_callback() if you want this.