BlackAndWhiteTransform
public class BlackAndWhiteTransform : Transform
Converts the image to black and white.
-
Initializes a
BlackAndWhiteTransform
object.Declaration
Swift
public init()
-
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