Contents

depthBlurEffectFilter(forImageData:options:)

Create a Cifilter Swift.class instance for the supplied image data that can be used to apply a depth blur effect.

Declaration

func depthBlurEffectFilter(forImageData data: Data, options: [AnyHashable : Any]? = nil) -> CIFilter?

Parameters

  • data:

    The image file data to apply the depth blur effect to.

  • options:

    Reserved for future use.

Discussion

The receiver context is used to render the image in order to get the facial landmarks used to create the effect.

See Also

Creating Depth Blur Filters