Kingfisher Documentation

Structure Black​White​Processor

public struct BlackWhiteProcessor: ImageProcessor  

Processor for applying black and white effect to images. Only CG-based images are supported. watchOS is not supported.

%231 BlackWhiteProcessor BlackWhiteProcessor ImageProcessor ImageProcessor BlackWhiteProcessor->ImageProcessor

Conforms To

ImageProcessor

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

Initializers

init()

public init()  

Creates a BlackWhiteProcessor

Properties

identifier

public let identifier = "com.onevcat.Kingfisher.BlackWhiteProcessor"

Identifier of the processor.

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.