ImageFilter

public protocol ImageFilter

The ImageFilter protocol defines properties for filtering an image as well as identification of the filter.

  • A closure used to create an alternative representation of the given image.

    Declaration

    Swift

    var filter: (Image) -> Image { get }
  • identifier Default implementation

    The string used to uniquely identify the filter operation.

    Default Implementation

    The unique identifier for any ImageFilter type.

    Declaration

    Swift

    var identifier: String { get }

Available where Self: Sizable

  • identifier Default implementation

    Default Implementation

    The unique idenitifier for an ImageFilter conforming to the Sizable protocol.

    Declaration

    Swift

    public var identifier: String { get }

Available where Self: Roundable

  • identifier Default implementation

    Default Implementation

    The unique idenitifier for an ImageFilter conforming to the Roundable protocol.

    Declaration

    Swift

    public var identifier: String { get }

Available where Self: CoreImageFilter

  • filter Default implementation

    Default Implementation

    The filter closure used to create the modified representation of the given image.

    Declaration

    Swift

    public var filter: (Image) -> Image { get }
  • identifier Default implementation

    Default Implementation

    The unique idenitifier for an ImageFilter conforming to the CoreImageFilter protocol.

    Declaration

    Swift

    public var identifier: String { get }