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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top