Contents

photoEffectChrome()

Exaggerates an image’s colors.

Declaration

class func photoEffectChrome() -> any CIFilter & CIPhotoEffect

Return Value

The modified image.

Discussion

This method applies a preconfigured set of effects that imitate vintage photography film with higher contrast.

The photo effect chrome filter uses the following property:

inputImage

An image with the type CIImage.

The following code creates a filter that results in diminished color in the input image:

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

[Image]

See Also

Color Effect Filters