ColorBurn

public struct ColorBurn: Filter

Darkens the background image samples to reflect the source image samples.

The following example uses an image to burn itself. let logo = Image("logo") var colorburn = ColorBurn() colorburn.background = logo logo.apply(colorburn) canvas.add(logo)

  • The name of the Core Image filter.

    Declaration

    Swift

    public let filterName = "CIColorBurnBlendMode"
  • The background image to use for the burn.

    Declaration

    Swift

    public var background: Image = Image()
  • Initializes a new filter

    Declaration

    Swift

    public init() {}
  • Applies the properties of the receiver to create a new CIFilter object

    Declaration

    Swift

    public func createCoreImageFilter(inputImage: CIImage) -> CIFilter

    Parameters

    inputImage

    The image to use as input to the filter.

    Return Value

    The new CIFilter object.