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 ofImageProcessorprotocol 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
ColorControlsProcessorDeclaration
Swift
public init(brightness: CGFloat, contrast: CGFloat, saturation: CGFloat, inputEV: CGFloat)Parameters
brightnessBrightness changing to image.
contrastContrast changing to image.
saturationSaturation changing to image.
inputEVInputEV changing to image.
-
Process an input
ImageProcessItemitem to an image for this processor.Note
See documentation of
ImageProcessorprotocol for more.Declaration
Swift
public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image?Parameters
itemInput item which will be processed by
selfoptionsOptions when processing the item.
Return Value
The processed image.
View on GitHub
Install in Dash
ColorControlsProcessor Structure Reference