Newbie: Chaining CIFilters together?
Newbie: Chaining CIFilters together?
- Subject: Newbie: Chaining CIFilters together?
- From: "M. Carlson" <email@hidden>
- Date: Tue, 24 May 2005 03:16:00 +0000
Okay, it's probably a case of RTFM, but I can't figure how to chain
CIFilters for combined effects.
There is a sample project, CIExposureSample, under Developer > Examples >
Quartz > Core Image. I can replace the CIExposureAdjust filter with
CIHueAdjust, for instance, and it works fine. But if I try to make the
output of one CIFilter become the input of another, like:
selectedImage = [CIImage imageWithContentsOfURL: ...
hueFilter = [CIFilter filterWithName:@"CIHueAdjust"
keysAndValues:@"inputImage",selectedImage,nil];
expFilter = [CIFilter filterWithName:@"CIExposureAdjust"
keysAndValues:@"inputImage",[hueFilter
valueForKey:@"outputImage"],nil];
[context drawImage:[ expFilter valueForKey: @"outputImage"] ...
This does not seem to work. Apparently, I don't quite get the paradigm used.
Thanks for any pointers.
--M
_______________________________________________
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