Re: QCView
Re: QCView
- Subject: Re: QCView
- From: Lorenzo <email@hidden>
- Date: Tue, 26 Feb 2008 21:44:34 +0100
Thank you David,
I have already a QCRenderer class to create OpenGL Textures from a QC, but
in this case (a simple file browser) I have found the QCView useful enough.
I have got the snapshot using my OpenGL routines (using the OpenGL context
from the QCView) and it worked fine.
Thanks for replying.
Best Regards
--
Lorenzo
email: email@hidden
> From: David Duncan <email@hidden>
> Date: Tue, 26 Feb 2008 09:57:09 -0800
> To: email@hidden
> Cc: email@hidden
> Subject: Re: QCView
>
> On Feb 26, 2008, at 7:03 AM, email@hidden wrote:
>
>> I am building on 10.4 and I would like to get a preview of a Quartz
>> Composition. The API snapshotImage works only on Leopard. So I have
>> tried
>> unsuccessfully to lockFocus drawRect and unlockFocus then save the
>> TIFFRepresentation, which results in an empty image.
>> The line pdfData = [oQCView dataWithPDFInsideRect:[oQCView bounds]];
>> returns a white image.
>>
>> Any idea? Should I work with the QCRenderer?
>
> QC renders via OpenGL, so yes you should try using the QCRenderer
> instead.
>
>> Also, I have found pauseRendering and resumeRendering working on
>> Leopard
>> only too. So how to perform this actions on Tiger? The API
>> stopRendering
>> erases the QCView.
>
> You will probably have to resort to the QCRenderer for this as well.
>
>> My target is (on Tiger): I have a text list of QC files with their
>> icons. I
>> click on a row of the list and I see a static preview of the first
>> frame of
>> the QC in a QCView. I double click and I play the QC. Other double
>> click and
>> I pause the QC (still visible). May I have a pointer? Thanks.
>
>
> For specific details, you might want to consul the QuartzComposer-Dev
> list, as the QC engineers monitor that list more so than this one.
> --
> David Duncan
> Apple DTS Animation and Printing
> email@hidden
>
>
>
_______________________________________________
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
References: | |
| >Re: QCView (From: David Duncan <email@hidden>) |