TintImageProcessor
public struct TintImageProcessor : ImageProcessor
Processor for tint images with color. Only CG-based images are supported.
-
Identifier of the processor.
Note
See documentation ofImageProcessor
protocol for more.Declaration
Swift
public let identifier: String
-
Tint color will be used to tint the input image.
Declaration
Swift
public let tint: Color
-
Creates a
TintImageProcessor
Declaration
Swift
public init(tint: Color)
Parameters
tint
Tint color will be used to tint the input image.
-
Processes the input
ImageProcessItem
with this processor.Note
See documentation of
ImageProcessor
protocol for more.Declaration
Swift
public func process(item: ImageProcessItem, options: KingfisherParsedOptionsInfo) -> Image?
Parameters
item
Input item which will be processed by
self
.options
Options when processing the item.
Return Value
The processed image.