screenshot png - part-cw/lambdanative GitHub Wiki

(screenshot->png fname)

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"))