Mac Developer Library

Developer

QuartzCore Framework Reference CIFilterConstructor Protocol Reference

Options
Deployment Target:

On This Page
Language:

CIFilterConstructor

The CIFilterConstructor protocol defines a method for supplying CIFilter objects. More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


import QuartzCore @import QuartzCore;

Availability


Available in OS X v10.7 and later.
  • Returns a filter object specified by name. (required)

    Declaration

    Swift

    func filterWithName(_ name: String!) -> CIFilter!

    Objective-C

    - (CIFilter *)filterWithName:(NSString *)name

    Parameters

    name

    The name of the requested custom filter.

    Return Value

    A CIFilter object implementing the custom filter.

    Discussion

    Core Image calls this method when a filter is requested by name using the CIFilter class method filterWithName: method (or related methods). Your implementation of this method should provide a new instance of the CIFilter subclass for your custom filter.

    Import Statement

    import QuartzCore

    Availability

    Available in OS X v10.7 and later.