PetscDrawSave#

Saves a drawn image

Synopsis#

#include "petscdraw.h" 
PetscErrorCode PetscDrawSave(PetscDraw draw)

Collective

Input Parameter#

  • draw - the drawing context

Options Database Keys#

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

  • -draw_save_final_image [filename] - saves the final image displayed in a window

  • -draw_save_single_file (true|false) - saves each new image in the same file, normally each new image is saved in a new file with filename/filename_%d.ext

Notes#

This is not normally called by the user.

See PetscDrawSetSave() for details on the possible image formats

See Also#

PetscDraw, PetscDrawSetSave()

Level#

advanced

Location#

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

Implementations#

PetscDrawSave_Image() in src/sys/classes/draw/impls/image/drawimage.c


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