QCRenderer.... how do you do that?
QCRenderer.... how do you do that?
- Subject: QCRenderer.... how do you do that?
- From: Eric Smith <email@hidden>
- Date: Sat, 10 Apr 2010 18:56:00 -0700
I'm trying to use a Quartz Composer filter in a cocoa app. I've published inputs and outputs: one image input, one image output. I can successfully set the input image, but when I try to get the output image, I get 0x0.... no error messages, just a null pointer.
Here's my code:
QCComposition* myComp = [QCComposition compositionWithFile:@"/Users/esmith/Desktop/Simple.qtz"];
QCRenderer* myRenderer = [[QCRenderer alloc] initWithComposition:myComp colorSpace:CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB)];
NSBitmapImageRep* theRep = [[[NSBitmapImageRep alloc] initWithCIImage:[ciImageRep CIImage]] autorelease];
BOOL isSet = [myRenderer setValue:theRep forInputKey:@"InputImage"];
NSBitmapImageRep* theOutput = [myRenderer valueForOutputKey:@"OutputImage" ofType:@"Image"];
Am I missing a step where I tell the renderer to render? (PS, I've tried renderattime:0, but it doesn't help).
Ideas?
Thanks,
Eric
_______________________________________________
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