IM_TYPE *im_create(Name, PixType, Xdim,Ydim,Zdim) char *Name; int PixType, Xdim,Ydim,Zdim;
Name - This is a null-terminated string containing the pathname of the file to be created. If a file with this name already exists, the routine will terminate. If "/dev/null" is specified, an IM_TYPE data structure is created, but no file is created. This is useful for creating temporary memory only images.
PixType - This is a value which specifies the type of pixel data stored in the image. Valid values for this field are: BYTE, SHORT, INT, FLOAT, DOUBLE, COMPLEX, COLOR, PSEUDO (all defined in IM.h).
Xdim - This is the number of pixels in the X dimension in the image. For all 1D, 2D and 3D images this value must be greater than 1.
Ydim - This is the number of pixels in the Y dimension in the image. For 1D images, this value must be 1. For 2D and 3D images, it must be greater than 1.
Zdim - This is the number of pixels in the Z dimension in the image. For 1D and 2D images, this value must be 1. For 3D images, it must be greater than 1.