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 ofImageProcessorprotocol for more.Declaration
Swift
public let identifier = "com.onevcat.Kingfisher.BlackWhiteProcessor" -
Initialize a
BlackWhiteProcessorDeclaration
Swift
public init() -
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
BlackWhiteProcessor Structure Reference