void im_initdesc( IMAGE *image, int xsize, int ysize,
int bands, int bandbits, int bandfmt,
int coding, int type,
float xres, float yres,
float xo, float yo )
The bandbits parameter is deprecated and ignored by this function: you can always pass zero.
Example: make a 512 by 512 one-band memory buffer.
if( !(im = im_open( "temp", "t" ))
)
/* Error ...
im_initdesc( im,
512, 512,
1, 0, FMTUCHAR,
NOCODING, B_W,
1.0, 1.0,
0, 0 );
if( im_setupout( im ) )
/* Error ...