LinearFocusFilter

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKLinearFocusFilter)
open class LinearFocusFilter : CIFilter

Applies a linear focus to an instance of CIImage.

Important

This linear focus filter is actually the ‘mirrored’ 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 the inputImage, y is relative to the height of the inputImage.

    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 the inputImage, y is relative to the height of the inputImage.

    Declaration

    Swift

    open var inputNormalizedControlPoint2: NSValue?
  • The blur radius to use for focus. Default is 10.

    Declaration

    Swift

    open var inputRadius: NSNumber?
  • The fade width to use for focus. Default is 0.

    Declaration

    Swift

    open var inputFadeWidth: 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?