int tsmWriteImage ( Image_t *image, char const *filename, TsmImageType format ) Write out an Image_t structure to a file on disk
Write out an Image_t structure to a file on disk.This function will save the contents of an Image_t structure out to a localhost filename or URL. A number of image formats can be supported by this function, as specified by the format parameter.
Currently, the PPM/PGM (TSM_PPM) and GIF (TSM_GIF) formats are supported. N.B. the GIF writer generates uncompressed GIF images. This means we don't need to worry about the licensing issues surrounding the use LZW compression in GIF.
This function will append an appropriate filename extension to your filename before saving, e.g. ".gif" for GIF images, ".ppm" for PPM images, etc.