Skip to content

Instantly share code, notes, and snippets.

@nakamura001
Last active August 29, 2015 13:56
Show Gist options
  • Save nakamura001/9020315 to your computer and use it in GitHub Desktop.
Save nakamura001/9020315 to your computer and use it in GitHub Desktop.
(Mac限定)openFrameworksで画面キャプチャした画像を取り込むコード
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