• 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 screen in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capture screen in Cocoa


  • Subject: Re: Capture screen in Cocoa
  • From: Shawn Erickson <email@hidden>
  • Date: Sat, 02 Sep 2006 07:16:04 -0700


On Sep 1, 2006, at 6:06 PM, Alexander Cohen wrote:

Is there a way to capture an image of the screen from Cocoa?

Not sure of exactly your screen capture needs but all of the solutions recommended to you so far are slow and/or use private API. The fastest way to capture pixels from the screen is to use a simple OpenGL and CGL set of commands.


Review <http://lists.apple.com/archives/Quartz-dev/2006/Apr/ msg00088.html>

Note you can improve on the code sample by using vImage to reflect the image, pulling context creation and configuration out of the grab function (if you are going to grab often), etc. You can also capture to a buffe that you can use with NSImage, etc. as you see fit.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Capture screen in Cocoa
      • From: "hackmiester (Hunter Fuller)" <email@hidden>
References: 
 >Capture screen in Cocoa (From: Alexander Cohen <email@hidden>)

  • Prev by Date: Re: I-beam curseroff?
  • Next by Date: Re: QuickTime Problems: cannot decode object of class (QTMovieView)
  • Previous by thread: Re: Capture screen in Cocoa
  • Next by thread: Re: Capture screen in Cocoa
  • Index(es):
    • Date
    • Thread