photoEffectTransfer()
Brightens an image’s colors.
Declaration
class func photoEffectTransfer() -> any CIFilter & CIPhotoEffectReturn 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:
inputImageAn 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]