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 10:17:26 -0700
On 4/26/06, Shawn Erickson <email@hidden> wrote:
> 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.
As a follow up the best way... the way to get DMAed reads from VRAM...
is to use OpenGL.
-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