PhotoEffect
@available(iOS 9.0, *)
@available(*, deprecated, renamed: "Effect", message: "use base class 'Effect' instead, e.g., to access static members and to define arrays of effects, or use subclasses of 'Effect' instead to create concrete instances")
@objcMembers
@objc(PESDKPhotoEffect)
open class PhotoEffect : Effect
The PhotoEffect
class describes an effect that can be applied to a photo.
Attention
This class is deprecated and will be removed in the future. It is only meant for backward compatibility. Use other non-deprecated subclasses ofEffect
instead.
-
Creates a new photo effect.
Attention
This class is deprecated and will be removed in the future. It is only meant for backward compatibility. Use
CoreImageEffect
instead.Declaration
Swift
@available(*, deprecated, renamed: "CoreImageEffect") public init(identifier: String, ciFilterName filterName: String?, displayName: String, options: [String : AnyObject]?)
Parameters
identifier
An identifier that uniquely identifies the effect.
filterName
The name of the
CIFilter
that should be used to apply this effect.displayName
The name that is displayed to the user.
options
Additional options that should be passed to the
CIFilter
object that will be created when applying this effect.Return Value
A newly initialized
PhotoEffect
object. -
The name of the
CIFilter
that should be used to apply this effect.Declaration
Swift
@available(*, deprecated, message: "Use instance of `CoreImageEffect` subclass") public var ciFilterName: String? { get }
-
Additional options that should be passed to the
CIFilter
object that will be created when applying this effect.Declaration
Swift
@available(*, deprecated, message: "Use instance of `CoreImageEffect` subclass") public var options: [String : AnyObject]? { get }
-
Creates a photo effect that uses the LUT at url
lutURL
to generate the color cube data for the filter.Attention
This class is deprecated and will be removed in the future. It is only meant for backward compatibility. Use
LUTEffect
instead.Declaration
Swift
@available(*, deprecated, renamed: "LUTEffect") public init(identifier: String, lutURL: URL?, displayName: String)
Parameters
identifier
An identifier that uniquely identifies the effect.
lutURL
The URL of the lut image that should be used to generate a color cube.
displayName
The name that is displayed to the user.
Return Value
A newly initialized
PhotoEffect
object. -
The URL of the lut image that should be used to generate a color cube.
Declaration
Swift
@available(*, deprecated, message: "Use instance of `LUTEffect` subclass") public var lutURL: URL? { get }
-
Returns a new
CIFilter
object with the given name and options.Declaration
Swift
@available(*, deprecated, message: "Use instance of non-deprecated `Effect` subclass") open override var newEffectFilter: CIFilter? { get }