The routine gPutImageFile() will generate a metafile of the specified type from the data stored in the array pixbuf. The metafile will be created in the specified file on disk.
The data stored in the pixbuf array may be either 8 bit or 24 bit data and is in the same format as that created by the routine gGetImageFile() or used by gDrawPixelArea() or gDrawCellArray(). The data may also be generated programatically by the application prior to calling this routine. Where the image contains 8 bit data, this is interpreted as colour indices and the current GINO colour table is added to the metafile to give the required mapping.
Note that Windows Icon files cannot be created when the pixbuf array contains 24 bit image data as this form of metafile can only contain 8 bit data. An error message is generated if this situation arises.