Re: Screenshot code for Tiger
Re: Screenshot code for Tiger
- Subject: Re: Screenshot code for Tiger
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 26 Apr 2006 07:17:27 -0700
On 4/26/06, Nir Soffer <email@hidden> wrote:
>
> On 26/04/2006, at 06:35, Shawn Erickson wrote:
>
> > Note QuickDraw is considered deprecated now so I would shy away from
> > using any method that makes use of QuickDraw.
>
> That leaves us with the slow initWithViewRect:, or the example OpenGL
> code that was removed from Apple site from unknown reason - and looks
> like it supposed to run on PPC.
The "initWithViewRect:" method only works in your own application, is
that what you want? Or do you want to take a screen shot of things
other then just your application? It would be better to outline
exactly what you are trying to achieve.
Assuming you want to take screen shots of things other then your own
windows/views...
Folks on the Quartz-Dev list and/or Open-GL lists likely will have
better answers for you. Anyway I believe the "right way" to do this
(outside of OpenGL) is to use the facilities provided by Quartz
Display Services [1].
To get optimal read back performance you need to align buffers to at
least a 32 byte boundary IIRC.
-Shawn
[1] <http://developer.apple.com/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html#//apple_ref/doc/uid/TP30001070-CH202-F17088>
_______________________________________________
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