• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Capture screenshot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Capture screenshot
      • From: email@hidden
References: 
 >Capture screenshot (From: "john muchow" <email@hidden>)

  • Prev by Date: Re: NSRectFillListWithColors question
  • Next by Date: Re: how to update the view of NSPrintOperation ?
  • Previous by thread: Capture screenshot
  • Next by thread: Re: Capture screenshot
  • Index(es):
    • Date
    • Thread