Search code examples
iosios6core-imagecifilter

CoreImage CIDotScreen on iOS


I'm trying to use CIDotScreen in an iOS app. CIDotScreen should be supported under iOS 6, however when I create a filter with:

[CIFilter filterWithName:@"CIDotScreen" keysAndValues:kCIInputImageKey, beginImage, kCIInputCenterKey...

The compiler complains on kCIInputCenterKeynot being available on iOS.

Any ideas?


Solution

  • kCIInputCenterKey

    A key for a CIVector object that specifies the center of the area, as x and y- coordinates, to be filtered.
    
    Available in OS X v10.5 and later. Not available in iOS.
    

    Availables Keys for input parameters to filters in iOS.

    1. kCIOutputImageKey;
    2. kCIInputBackgroundImageKey;
    3. kCIInputImageKey;
    4. kCIInputVersionKey;

    So we need to accept the compiler's complaint