ColorControlsProcessor
public struct ColorControlsProcessor: ImageProcessor
Processor for applying some color control to images. Only CG-based images are supported. watchOS is not supported.
-
Identifier of the processor.
Note
See documentation ofImageProcessor
protocol for more.Declaration
Swift
public let identifier: String
-
Brightness changing to image.
Declaration
Swift
public let brightness: CGFloat
-
Contrast changing to image.
Declaration
Swift
public let contrast: CGFloat
-
Saturation changing to image.
Declaration
Swift
public let saturation: CGFloat
-
InputEV changing to image.
Declaration
Swift
public let inputEV: CGFloat
-
Initialize a
ColorControlsProcessor
Declaration
Swift
public init(brightness: CGFloat, contrast: CGFloat, saturation: CGFloat, inputEV: CGFloat)
Parameters
brightness
Brightness changing to image.
contrast
Contrast changing to image.
saturation
Saturation changing to image.
inputEV
InputEV changing to image.
-
Process an input
ImageProcessItem
item to an image for this processor.Note
See documentation of
ImageProcessor
protocol for more.Declaration
Swift
public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image?
Parameters
item
Input item which will be processed by
self
options
Options when processing the item.
Return Value
The processed image.