Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Macで現在の画面表示のスクリーンショットをプログラムで取得する(または何らかの方法で画像にアクセスする)方法はありますか?
できれば、Objective-C ではなく、C++ で。
screencapture(1) を使用します。
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/screencapture.1.html
system() または posix_spawn() で呼び出します。