Filestack Documentation

Class Black​And​White​Transform

public class BlackAndWhiteTransform: Transform  

Converts the image to black and white.

BlackAndWhiteTransform BlackAndWhiteTransform Transform Transform BlackAndWhiteTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a BlackAndWhiteTransform object.

Methods

threshold(_:​)

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

Adds the threshold option.

Parameters

value Int

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