Applies a bokeh effect to an image.
- iOS 13.0+
- macOS 10.15+
- tvOS 13.0+
- Core Image
The blurred image.
This method applies the bokeh blur filter to an image. The effect targets a circular area of pixels defined by the
radius and blurs the area. The filter adds smaller intense blur rings.
The bokeh blur filter uses the following properties:
floatrepresenting the area of effect as an
floatrepresenting the ring size of the bokeh as an
floatrepresenting the emphasis at the ring of the bokeh as an
floatrepresenting the softness of the bokeh effect as an
CIImagerepresenting the input image to apply the filter to.
The following code creates a filter that adds a softer blur to the input image: