PetscDrawSetSaveFinalImage#

Saves the final image produced in a PetscDraw into a file

Synopsis#

#include "petscdraw.h" 
PetscErrorCode PetscDrawSetSaveFinalImage(PetscDraw draw, const char filename[])

Collective

Input Parameters#

  • draw - the graphics context

  • filename - name of the file, if NULL or empty uses name set with PetscDrawSetSave() or the name of the draw object

Options Database Key#

  • -draw_save_final_image [filename] - filename could be name.ext or .ext (.ext determines the type of graphics file to save, for example .png)

Notes#

You should call this BEFORE creating your image and calling PetscDrawSave().

See PetscDrawSetSave() for details on supported formats

See Also#

PetscDraw, PetscDrawSetSave(), PetscDrawSetFromOptions(), PetscDrawCreate(), PetscDrawDestroy()

Level#

intermediate

Location#

src/sys/classes/draw/interface/dsave.c


Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages