photoEffectNoir()
Adjusts an image’s colors to black and white and intensifies the contrast.
Declaration
class func photoEffectNoir() -> any CIFilter & CIPhotoEffectReturn Value
The modified image.
Discussion
This method applies a preconfigured set of effects that imitate black-and-white photography film and intensifies the contrast.
The photo effect noir filter uses the following property:
inputImageAn image with the type CIImage.
The following code creates a filter that results in a black-and-white image:
func photoEffectNoir(inputImage: CIImage ) -> CIImage {
let photoEffect = CIFilter.photoEffectNoir()
photoEffect.inputImage = inputImage
return photoEffect.outputImage!
}[Image]