Contents

photoEffectTransfer()

Brightens an image’s colors.

Declaration

class func photoEffectTransfer() -> any CIFilter & CIPhotoEffect

Return Value

The modified image.

Discussion

This method applies a preconfigured set of effects that imitate vintage photography film and emphasize warm colors.

The photo effect transfer filter uses the following property:

inputImage

An image with the type CIImage.

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

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

[Image]

See Also

Color Effect Filters