Re: Capture screenshot
Re: Capture screenshot
- Subject: Re: Capture screenshot
- From: Uli Kusterer <email@hidden>
- Date: Wed, 14 May 2008 15:07:33 +0200
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 (email@hidden)
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:
This email sent to email@hidden