DuoToneEffect

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKDuoToneEffect)
open class DuoToneEffect : Effect

A concrete Effect that creates a duotone look based on a two-color gradient map applied to the input after grayscale conversion.

Accessors

  • The color that is mapped to light colors.

    Declaration

    Swift

    public let lightColor: UIColor?
  • The color that is mapped to dark colors.

    Declaration

    Swift

    public let darkColor: UIColor?

Initializers

  • Creates an effect for duotone looks.

    Declaration

    Swift

    public init(identifier: String, lightColor: UIColor?, darkColor: UIColor?, displayName: String)

    Parameters

    identifier

    An identifier that uniquely identifies the effect.

    lightColor

    The color that is mapped to light colors.

    darkColor

    The color that is mapped to dark colors.

    displayName

    The name that is displayed to the user.

    Return Value

    A newly initialized DuoToneEffect object.

  • Returns a new CIFilter object.

    Declaration

    Swift

    open override var newEffectFilter: CIFilter? { get }