> First off, apologies if my terminology is all wrong, I'm only a couple of 
> days into exploring Quartz Composer.
> 
> I've created a simple composition which has a defined image output. In my 
> Cocoa project I've managed to display the image properly using a 
> QCQuartzCompositionLayer but ideally I'd like to be able to grab the image on 
> demand without rendering it to screen. I therefore started looking into 
> QCRenderer but am now struggling to get things working.

Are you trying to get the rendered output (e.g. what you see on the layer), or 
a published output (normally not displayed in a layer)?  Your code appears to 
be trying to get a published output (valueForOutputKey:…), but if you want a 
"screenshot", you should use -snapshotImage or -createSnapshotImageOfType:.

> Error running Quartz Composition '‡CÅpˇ': -[QCRenderer 
> initWithComposition:colorSpace:]: Inconsistent state

Can you please provide the following:
        * Example composition (you can strip out sensitive bits if it makes you 
feel better)
        * Example Xcode project (you should strip out sensitive bits)
        * A backtrace/crash log (if available -- since this is an exception it 
might be less informative)

> So, does anyone have any idea what I'm doing wrong or can anyone give me some 
> advice about retrieving an image from a composition in a QCRenderer.


https://developer.apple.com/library/mac/#samplecode/QuartzComposerOffline/Listings/main_m.html

--
Christopher Wright
[email protected]



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to