Kingfisher Documentation

Structure Tint​Image​Processor

public struct TintImageProcessor: ImageProcessor  

Processor for tint images with color. Only CG-based images are supported.

%29 TintImageProcessor TintImageProcessor ImageProcessor ImageProcessor TintImageProcessor->ImageProcessor

Conforms To

ImageProcessor

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

Initializers

init(tint:​)

public init(tint: KFCrossPlatformColor)  

Creates a TintImageProcessor

Parameters

tint KFCross​Platform​Color

Tint color will be used to tint the input image.

Properties

identifier

public let identifier: String

Identifier of the processor.

tint

public let tint: KFCrossPlatformColor

Tint color will be used to tint the input 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.