GradientFocusFilter
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKGradientFocusFilter)
open class GradientFocusFilter : CIFilter
Applies a gradient focus to an instance of CIImage
.
Important
This gradient focus filter is actually the ‘linear’ focus in the serialization, but for legacy reasons the old name was kept. This will most likely be subject to change in a future major version update of the PhotoEditor SDK.-
The input image.
Declaration
Swift
open var inputImage: CIImage?
-
The first normalized control point of the focus. This control point should use the coordinate system of Core Image, which means that (0, 0) is at the bottom left.
x
is relative to the width of theinputImage
,y
is relative to the height of theinputImage
. This point describes the unblurred part of the image.Declaration
Swift
open var inputNormalizedControlPoint1: NSValue?
-
The second normalized control point of the focus. This control point should use the coordinate system of Core Image, which means that (0, 0) is at the bottom left.
x
is relative to the width of theinputImage
,y
is relative to the height of theinputImage
. This point describes the blurred part of the image.Declaration
Swift
open var inputNormalizedControlPoint2: NSValue?
-
The blur radius to use for focus. Default is 10.
Declaration
Swift
open var inputRadius: NSNumber?
-
The quality that should be used expressed as
BlurQuality
raw values.BlurQuality.low
should be used only during preview.Declaration
Swift
open var inputBlurQuality: NSNumber?