Capture Screen Image in C++ on OSX

后端 未结 3 1020
耶瑟儿~
耶瑟儿~ 2020-12-09 06:31

Is there a way to programatically take a screenshot (or somehow get access to an image) of the current screen display on a mac?

Preferably, in C++, not Objective-C.<

3条回答
  •  孤街浪徒
    2020-12-09 07:06

    I recommand usage of Quartz Display Services and function CGDisplayCreateImage()

提交回复
热议问题