BlurImageProcessor
public struct BlurImageProcessor: ImageProcessor
Processor for adding blur effect to images. Accelerate.framework
is used underhood for
a better performance. A simulated Gaussian blur with specified blur radius will be applied.
-
Identifier of the processor.
Note
See documentation ofImageProcessor
protocol for more.Declaration
Swift
public let identifier: String
-
Blur radius for the simulated Gaussian blur.
Declaration
Swift
public let blurRadius: CGFloat
-
Initialize a
BlurImageProcessor
Declaration
Swift
public init(blurRadius: CGFloat)
Parameters
blurRadius
Blur radius for the simulated Gaussian blur.
-
Process an input
ImageProcessItem
item to an image for this processor.Note
See documentation of
ImageProcessor
protocol for more.Declaration
Swift
public func process(item: ImageProcessItem, options: KingfisherOptionsInfo) -> Image?
Parameters
item
Input item which will be processed by
self
options
Options when processing the item.
Return Value
The processed image.