月份:十二月 2011

Grab Screen from Mac OS X Lion(10.7)

Posted on

Mac OS X Lion seams disable OpenGL screen. So, glReadPixel can’t get screen shot.
The solution to grab the screen:
CGImageRef image = CGDisplayCreateImage(kCGDirectMainDisplay);

廣告