I looked for time to answer this question, but found nothing. I am trying to use CIAffineTransform besides iOS 5 Beta, and have encountered a problem. The documentation says that the 'inputTransform' property accepts NSAffineTransform, but as far as I can tell, there is no way to instantiate one of them in iOS, all the studies that I have done tell me that this class is for MacOS (correct me if I I am mistaken).
If so, then what value do I put in inputTransform?
Here is some simple code to explain what I'm trying to execute.
CIImage* result = "Some CIImage"; CIFilter* filter = [CIFilter filterWithName:@"CIAffineTransform"]; [filter setValue:result forKey:kCIInputImageKey]; [filter setValue:transform forKey:@"inputTransform"]; //What type/class of value do I set here if I can't use an NSAffineTransform result = [filter outputImage];
Any help would be greatly appreciated.
ios core-graphics core-image
Grinneh
source share