int im_setupout(image)
IMAGE *image;
Typically, for WIO, you should have
int
im_wombat( in, out )
IMAGE *in, *out;
{
if( im_iocheck( in, out ) )
return( -1 );
... check parameters, check image descriptors
... for type-compatibility, etc. etc.
if( im_cp_desc( out, in ) )
return( -1 );
... set fields in out for the type of image you
... wish to write
if( im_setupout( out ) )
return( -1 );
... process from input to output, reading from in->data
... and writing to out with im_writeline(3)