Kingfisher Documentation

Structure Color​Controls​Processor

public struct ColorControlsProcessor: ImageProcessor  

Processor for applying some color control to images. Only CG-based images are supported. watchOS is not supported.

%227 ColorControlsProcessor ColorControlsProcessor ImageProcessor ImageProcessor ColorControlsProcessor->ImageProcessor

Conforms To

ImageProcessor

An ImageProcessor would be used to convert some downloaded data to an image.

Initializers

init(brightness:​contrast:​saturation:​input​EV:​)

public init(brightness: CGFloat, contrast: CGFloat, saturation: CGFloat, inputEV: CGFloat)  

Creates a ColorControlsProcessor

Parameters

brightness CGFloat

Brightness changing to image.

contrast CGFloat

Contrast changing to image.

saturation CGFloat

Saturation changing to image.

input​EV CGFloat

InputEV changing to image.

Properties

identifier

public let identifier: String

Identifier of the processor.

brightness

public let brightness: CGFloat

Brightness changing to image.

contrast

public let contrast: CGFloat

Contrast changing to image.

saturation

public let saturation: CGFloat

Saturation changing to image.

input​EV

public let inputEV: CGFloat

InputEV changing to image.

Methods

process(item:​options:​)

public func process(item: ImageProcessItem, options: KingfisherParsedOptionsInfo) -> KFCrossPlatformImage?  

Processes the input ImageProcessItem with this processor.

Parameters

item Image​Process​Item

Input item which will be processed by self.

options Kingfisher​Parsed​Options​Info

Options when processing the item.

Returns

The processed image.