chickadee » soil » save-screenshot

save-screenshot filename save-type x y width heightprocedure

Captures the OpenGL window (RGB) and saves it to disk.

  • filename: The file to save the image to
  • save-type: The format to save the image in, one of save-type/*
  • x: Start x position
  • y: Start y position
  • width: Width of image
  • height: Height of image

Returns #t if successful.