BlackWhiteProcessor
public struct BlackWhiteProcessor : ImageProcessor
Processor for applying black and white effect to images. Only CG-based images are supported. watchOS is not supported.
-
Identifier of the processor.
Note
See documentation ofImageProcessor
protocol for more.Declaration
Swift
public let identifier: String
-
Creates a
BlackWhiteProcessor
Declaration
Swift
public init()
-
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.