CIFilter_Stylize_DepthOfField - linhay/Stem GitHub Wiki

CIFilter.Stylize.DepthOfField

and later and in iOS 9 and later.

public struct DepthOfField: CIFilterContainerProtocol

Inheritance

CIFilterContainerProtocol

Initializers

init()

init()

Properties

filter

var filter: CIFilter

image

A CIImage object whose display name is Image.

var image: CIImage?

point0

The focused region of the image stretches in a line between inputPoint0 and inputPoint1 of the image. A CIVector object whose attribute type is CIAttributeTypePosition.

var point0: CIVector?

point1

A CIVector object whose attribute type is CIAttributeTypePosition.

var point1: CIVector?

saturation

A saturation effect applied to the in-focus regions of the image. An NSNumber object whose attribute type is CIAttributeTypeScalar. This value indications the amount to adjust the saturation on the in-focus portion of the image.

var saturation: NSNumber?

unsharpMaskRadius

Specifies the radius of the unsharp mask effect applied to the in-focus area. An NSNumber object whose attribute type is CIAttributeTypeScalar.

var unsharpMaskRadius: NSNumber?

unsharpMaskIntensity

Specifies the intensity of the unsharp mask effect applied to the in-focus area. An NSNumber object whose attribute type is CIAttributeTypeScalar.

var unsharpMaskIntensity: NSNumber?

radius

Controls how much the out-of-focus regions are blurred. An NSNumber object whose attribute type is CIAttributeTypeScalar. This value specifies the distance from the center of the effect.

var radius: NSNumber?