Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / January 2006



Tip: Looking for answers? Try searching our database.

screen capture

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ole Andre Karlson - 11 Jan 2006 13:29 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.