DynamicImageFilter

public struct DynamicImageFilter: ImageFilter

The DynamicImageFilter class simplifies custom image filter creation by using a trailing closure initializer.

  • The string used to uniquely identify the image filter operation.

    Declaration

    Swift

    public let identifier: String
  • A closure used to create an alternative representation of the given image.

    Declaration

    Swift

    public let filter: (Image) -> Image
  • Initializes the DynamicImageFilter instance with the specified identifier and filter closure.

    Declaration

    Swift

    public init(_ identifier: String, filter: @escaping (Image) -> Image)