Skip to content

Instantly share code, notes, and snippets.

@tado
Created March 22, 2017 03:57
Show Gist options
  • Save tado/24d837d4e94252e34778e2e39cdbcb51 to your computer and use it in GitHub Desktop.
Save tado/24d837d4e94252e34778e2e39cdbcb51 to your computer and use it in GitHub Desktop.
ofTexture to ofImage
ofTexture texture = cam.getTexture();
ofPixels pixels;
texture.readToPixels(pixels);
ofImage img;
img.setFromPixels(pixels);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment