Skip to content
Chris Petersen edited this page Oct 16, 2014 · 2 revisions

screenshot->png saves a screenshot to a user-specified file.

Parameter Description
fname PNG file to save to

Example

Example 1: Save a time-stamped screenshot to the results directory of an application

(screenshot->png (string-append (system-directory) (system-pathseparator) "results" 
                 (system-pathseparator) (seconds->timestamp ##now) ".png"))
Clone this wiki locally