Contents

photoEffectProcess()

Lowers the contrast of the input image.

Declaration

class func photoEffectProcess() -> any CIFilter & CIPhotoEffect

Return Value

The modified image.

Discussion

This method applies a preconfigured set of effects that imitate vintage photography film with emphasized cool colors.

The photo effect process filter uses the following property:

inputImage

An image with the type CIImage.

The following code creates a filter that adds a lower contrast to the input image:

func photoEffectProcess(inputImage: CIImage ) -> CIImage {
    let photoEffect = CIFilter.photoEffectProcess()
    photoEffect.inputImage = inputImage
    return photoEffect.outputImage!
}

[Image]

See Also

Color Effect Filters