Filter Attributes
Core Image filters have a flexible approach to customization. All instances of CIFilter
have a dictionary property called attributes
that contains information about the filter and all the customizations to the filter. Instances of CIFilter
have a property called inputKeys
, which lists the keys of each customizable input item, and a property called outputKeys
, which lists the output items from the filter.
The sample app has specialized table cells to enable the user to see what attributes are available for a selected filter, adjust those attributes, and preview the image based on the current attribute parameters, as shown in Figure 19.5.
Each attribute ...
Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.