BlackAndWhiteTransform
public class BlackAndWhiteTransform : Transform
Converts the image to black and white.
-
Initializes a
BlackAndWhiteTransformobject.Declaration
Swift
public init()
-
Adds the
thresholdoption.Declaration
Swift
@discardableResult func threshold(_ value: Int) -> SelfParameters
valueControls the balance between black and white (contrast) in the returned image. Valid range:
1...100
View on GitHub
BlackAndWhiteTransform Class Reference