Hi,
I'm trying to write an application that needs to analyze a part of the
sceen outside of the application window (what color is pixel so and
so..). How do I ask the OS about this? Or if thats not possible, how do
I perform a screenshot programatically?
I'm using Tiger and c/c++ or objective-c.
Thanks
Ole Andre Karlson
Rob Shaw - 12 Jan 2006 15:46 GMT
The do-it-yourself approach is to get the address of the
frame buffer in user space with CGDisplayBaseAddress() or
CGDisplayAddressForPosition(), then directly read the pixels.
Of course, you have to be ready to interpret raw pixel data.