Last active
August 29, 2015 13:56
-
-
Save nakamura001/9020315 to your computer and use it in GitHub Desktop.
(Mac限定)openFrameworksで画面キャプチャした画像を取り込むコード
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
void testApp::draw(){ | |
char file_path[] = "/tmp/capture"; | |
char cmd[256]; | |
snprintf(cmd, sizeof(cmd), "screencapture -x %s", file_path); | |
system(cmd); | |
myImage.loadImage(file_path); | |
myImage.draw(20,20, 640, 480); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment