• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
QCRenderer.... how do you do that?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: QCRenderer.... how do you do that?: solved
      • From: Eric Smith <email@hidden>
  • Prev by Date: Re: Cant read second table from same sqlite database iphone
  • Next by Date: Re: MainMenu.nib won't load
  • Previous by thread: Re: Cant read second table from same sqlite database iphone
  • Next by thread: Re: QCRenderer.... how do you do that?: solved
  • Index(es):
    • Date
    • Thread