What is the best Core Image filter to produce black and white effects?

后端 未结 8 834
-上瘾入骨i
-上瘾入骨i 2020-11-29 20:16

I am using Core Image and would like to produce a black and white effect on the chosen image.

Ideally I would like to have access to the same sort of options that a

8条回答
  •  孤独总比滥情好
    2020-11-29 20:21

    With regard to the answers suggesting to use CIColorMonochrome: There now are a few dedicated grayscale filters available from iOS7 (and OS X 10.9):

    • CIPhotoEffectTonal

      imitate black-and-white photography film without significantly altering contrast.

    • CIPhotoEffectNoir:

      imitate black-and-white photography film with exaggerated contrast

    Source: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html

提交回复
热议问题