i need to perform Bump Distortion in ios 5.0... my xcode doesn't show any error and also i am not get any output ... while trace and print the Bump filter instance it prints the null value...
any idea about that...
some of the post shows that was not work in ios 5.0, any other way is there to perform the Bump Distortion...
Thanks in advance....
Regards,
Spynet
My code...
context = [CIContext contextWithOptions:nil];
CIFilter *bumpDistortion = [CIFilter filterWithName:@"CIBumpDistortion"];
[bumpDistortion setValue:ciimage forKey:kCIInputImageKey];
[bumpDistortion setValue:[CIVector vectorWithX:200 Y:150] forKey:@"inputCenter"];
[bumpDistortion setValue:[NSNumber numberWithFloat:100] forKey:@"inputRadius"];
[bumpDistortion setValue:[NSNumber numberWithFloat:3.0] forKey:@"inputScale"];
CIImage *imageOutput = [bumpDistortion outputImage];
CGImageRef cgimg = [context createCGImage:imageOutput fromRect:[imageOutput extent]];
UIImage *newImg = [UIImage imageWithCGImage:cgimg];
[self.imageView setImage:newImg];