Other Aliasim_outcheck, im_iocheck
int im_incheck( in )
int im_outcheck( out )
int im_iocheck( in, out)
IMAGE *in, *out;
DESCRIPTIONim_incheck(3) checks that an image descriptor is suitable for WIO input (ie. all of its pels can be found from im->data). If possible, it transforms the descriptor to make WIO input ok using the following rules:
IM_PARTIAL: the descriptor is magically turned into an IM_SETBUF descriptor. Memory is allocated and the image generated into that. The old partial callbacks are closed down, and the descriptor reformed as a IM_SETBUF.
IM_OPENOUT: if the descriptor has been written to, it is automatically `rewound,` that is, it is closed and reopened as an IM_MMAPIN descriptor.
IM_SETBUF: just checks that the descriptor has been written to.
See the manual page for im_setupout(3) for a skeleton program.
RETURN VALUEAll functions returns 0 on success and -1 on error.
AUTHORJ. Cupitt - 23/7/93