#include "petscdraw.h" PetscErrorCode PetscDrawSetSaveFinalImage(PetscDraw draw,const char filename[])Collective on PetscDraw
draw | - the graphics context | |
filename | - name of the file, if NULL or empty uses name set with PetscDrawSetSave() or name of draw object |
Notes: You should call this BEFORE creating your image and calling PetscDrawSave(). The supported image types are .png, .gif, and .ppm (PETSc chooses the default in that order). Support for .png images requires configure --with-libpng. Support for .gif images requires configure --with-giflib. Support for .jpg images requires configure --with-libjpeg. Support for .ppm images is built-in. The PPM format has no compression (640x480 pixels ~ 900 KiB).