문제

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