Re: Capture screen in Cocoa
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