Contents

photoEffectNoir()

Adjusts an image’s colors to black and white and intensifies the contrast.

Declaration

class func photoEffectNoir() -> any CIFilter & CIPhotoEffect

Return 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:

inputImage

An 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]

See Also

Color Effect Filters