BlackAndWhiteTransform

public class BlackAndWhiteTransform : Transform

Converts the image to black and white.

Lifecycle

  • Initializes a BlackAndWhiteTransform object.

    Declaration

    Swift

    public init()

Public Functions

  • Adds the threshold option.

    Declaration

    Swift

    @discardableResult
    func threshold(_ value: Int) -> Self

    Parameters

    value

    Controls the balance between black and white (contrast) in the returned image. Valid range: 1...100