IMGLYTiltshiftFilter

open class IMGLYTiltshiftFilter : CIFilter

This class realizes a tilt-shit filter effect. That means that a part a of the image is blurred. The non-blurry part of the image can be defined either by a circle or a box, defined by the tiltShiftType variable. Both, circle and box, are described by the controlPoint1 and controlPoint2 variable, that mark either two oppesite points on the radius of the circle, or two points on oppesite sides of the box.

  • A CIImage object that serves as input for the filter.

    Declaration

    Swift

    @objc
    open var inputImage: CIImage?
  • One of the two points, marking the dimension and direction of the box or circle.

    Declaration

    Swift

    open var controlPoint1: CGPoint
  • One of the two points, marking the dimension and direction of the box or circle.

    Declaration

    Swift

    open var controlPoint2: CGPoint
  • Defines the mode the filter operates in. Possible values are Box, Circle, and Off.

    Declaration

    Swift

    open var tiltShiftType: IMGLYTiltshiftType
  • The radius that is set to the gaussian filter during the whole process. Default is 4.

    Declaration

    Swift

    open var blurRadius: CGFloat
  • Returns a CIImage object that encapsulates the operations configured in the filter. (read-only)

    Declaration

    Swift

    open override var outputImage: CIImage? { get }
  • Undocumented

    Declaration

    Swift

    open override func copy(with zone: NSZone?) -> Any