gfx:capture-canvas

(gfx:capture-canvas canvas file)


Description:

Captures canvas as a png to file.


Arguments:

         canvas -- canvas to capture

           file -- fully qulified path to file to save canvas to


Returns: boolean


Related: gfx:capture-image gfx:start-pdf-capture gfx:stop-pdf-capture au:start-audio-capture au:stop-audio-capture 


Examples:

(define movie-capture

   (lambda (time inc cnt)

      (gfx:capture-canvas canvas (string-append "/tmp/throb_" (number->string cnt) ".png"))

      (if (< cnt 100) 

          (callback (+ time inc) 'movie-capture (+ time inc) inc (+ cnt 1)))))



Back to index