Skip to content

Instantly share code, notes, and snippets.

@runemadsen
Created December 9, 2010 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runemadsen/734192 to your computer and use it in GitHub Desktop.
Save runemadsen/734192 to your computer and use it in GitHub Desktop.
ofxImage screenGrab;
screenGrab.setFromPixels((unsigned char *)_tex.getPixels(), _tex.getWidth(), _tex.getHeight(), OF_IMAGE_COLOR);
screenGrab.mirror(false, true);
screenGrab.saveImage("myimage.png");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment