Filter
An opaque type that wraps a system specific filter. Currently only CoreImage/CIFilter(s) are supported on iOS and macOS.
Filter Reference: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html
Almost all CIFilter(s) are available and supported except for filters that have NSData inputs.
To use a Filter you need first need to create it by passing one of the supported filter names from: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html.
example:
// Create a blur filter. let blurFilter = Filter ("CIBoxBlur");
To set parameters you must call the setValue (value, key); method.
// Set the "inputRadius" for "CIBoxBlur" filter. blurFilter.setValue (12.0, "inputRadius");
You can retrieve parameters you've set by calling the getValue (key); method.
Creates a Filter object with a specified name.
fileName
Gets the name of this filter.
Gets a value for the specified key.
Sets the specified value for the specified key.
Generated using TypeDoc
Filter
An opaque type that wraps a system specific filter. Currently only CoreImage/CIFilter(s) are supported on iOS and macOS.
Filter Reference: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html
Almost all CIFilter(s) are available and supported except for filters that have NSData inputs.
To use a Filter you need first need to create it by passing one of the supported filter names from: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html.
example:
// Create a blur filter. let blurFilter = Filter ("CIBoxBlur");
To set parameters you must call the setValue (value, key); method.
// Set the "inputRadius" for "CIBoxBlur" filter. blurFilter.setValue (12.0, "inputRadius");
You can retrieve parameters you've set by calling the getValue (key); method.