linearToSRGBToneCurve()
Alters an image’s color intensity.
Declaration
class func linearToSRGBToneCurve() -> any CIFilter & CILinearToSRGBToneCurveReturn Value
The modified image.
Discussion
This method applies the linear-to-sRGB tone curve filter to an image. The effect converts an image in linear color space to sRGB.
The linear-to-sRGB tone curve filter uses the following properties:
inputImageAn image with the type CIImage.
The following code creates a filter that adds brightness to the input image:
func linearTosRGB(inputImage: CIImage) -> CIImage {
let linearTosRGB = CIFilter.linearToSRGBToneCurve()
linearTosRGB.inputImage = inputImage
return linearTosRGB.outputImage!
}[Image]