Click or drag to resize

IBitmapImageThresholdBinary Method (Single, Boolean)

Brightness values are clamped to 100% (white) or 0% (black) depending on parameters thresholdPc and toInverse.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage ThresholdBinary(
	float thresholdPc,
	bool toInverse
)

Parameters

thresholdPc
Type: SystemSingle
Threshold percent.
toInverse
Type: SystemBoolean
if set to true convert image to inverse.

Return Value

Type: IBitmapImage
A new image instance with effect applied.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionthresholdPc
See Also