Created
March 22, 2017 03:57
-
-
Save tado/24d837d4e94252e34778e2e39cdbcb51 to your computer and use it in GitHub Desktop.
ofTexture to ofImage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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