petsc-3.4.5 2014-06-29

PetscDrawSetSave

Saves images produced in a PetscDraw into a file as a Gif file using AfterImage

Synopsis

#include "petscdraw.h" 
PetscErrorCode  PetscDrawSetSave(PetscDraw draw,const char *filename,PetscBool movie)
Collective on PetscDraw

Input Parameter

draw - the graphics context
filename - name of the file, if NULL uses name of draw object
movie - produce a movie of all the images

Options Database Command

Notes: You should call this BEFORE calling PetscDrawClear() and creating your image.

Requires that PETSc be configured with the option --with-afterimage to save the images and ffmpeg must be in your path to make the movie

If X windows generates an error message about X_CreateWindow() failing then Afterimage was installed without X windows. Reinstall Afterimage using the ./configure flags --x-includes=/pathtoXincludes --x-libraries=/pathtoXlibraries For example under Mac OS X Mountain Lion --x-includes=/opt/X11/include -x-libraries=/opt/X11/lib

See Also

PetscDrawSetFromOptions(), PetscDrawCreate(), PetscDrawDestroy()

Level:intermediate
Location:
src/sys/classes/draw/interface/drawreg.c
Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages

-draw_save <filename>- - -draw_save_movie