Re: New game on ADC Web site?
Re: New game on ADC Web site?
- Subject: Re: New game on ADC Web site?
- From: Stephane Sudre <email@hidden>
- Date: Tue, 8 Mar 2005 12:12:15 +0100
On 8 mars 05, at 12:07, Stephane Sudre wrote:
http://developer.apple.com/macosx/tiger/coreimage.html
Find the apparently obvious 5 bugs in the first 12 lines sample code.
[...]
NSURL *url;
CIImage source;
CIImage result;
CIFilter hueAdjust;
url = [NSURL fileURLWithPath:path];
source = [CIImage imageWithContentsOfURL:url];
hueAdjust = CIFilter filterWIthName:@"CIHueAdjust"];
[hueAdjust setDefaults];
[hueAdjust setValue:source forKey:@"inputImage"];
[hueAdjust setValue:[NSNumber numberWithFloat:2.094
forKey:@"inputAngle"];
result = [hueAdjust valueForKey:@"outputImage"];
[...]
The 6th one is less obvious to find if you don't have an eagle's sight.
_______________________________________________
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