Screen grabbing
//Grab the screen image to file
if ( key == ' ' ) {
  ofImage image;  //Declare image object
  //Grab contents of the screen
  image.grabScreen( 0, 0, ofGetWidth(), ofGetHeight() );  
  image.saveImage( "screen.png" );  //Save image
}