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
-
Initializes the
DynamicImageFilter
instance with the specified identifier and filter closure.Parameters
identifier
The unique identifier of the filter.
filter
A closure used to create an alternative representation of the given image.
Return Value
The new
DynamicImageFilter
instance.