TintImageProcessor
public struct TintImageProcessor: ImageProcessor
Processor for tint images with color. Only CG-based images are supported.
-
Identifier of the processor.
Note
See documentation ofImageProcessorprotocol for more.Declaration
Swift
public let identifier: String -
Tint color will be used to tint the input image.
Declaration
Swift
public let tint: Color -
Initialize a
TintImageProcessorDeclaration
Swift
public init(tint: Color)Parameters
tintTint color will be used to tint the input 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
TintImageProcessor Structure Reference