Am 14.05.2008 um 14:48 schrieb john muchow:
My question for this group is if anyone is aware of a Cocoa
API/library call to capture a screenshot.

Cocoa? No. But CoreXXX has several options:

- You can ask CGDirectDisplay for the base pointer of a screen's bitmap

- You can use Leopard's CGWindow APIs to get snapshots of several windows together or separately.

However, your app will probably need to run as root to use these APIs before login, and applications can tell the OS to exclude a window from screen shots, in which case you probably can't use these APIs either.

You could also look into OpenGL, there might be a way to read the pixels from the graphics card.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to