Click or drag to resize

IBitmapImageThreshold Method

Applies a bracketed (upper and lower) brightness threshold to the image.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage Threshold(
	float lowerThresholdPc,
	float lowerThresholdPassPc,
	float upperThresholdPc,
	float upperThresholdPassPc
)

Parameters

lowerThresholdPc
Type: SystemSingle
The lower threshold percent.
lowerThresholdPassPc
Type: SystemSingle
Value to use if below lower threshold.
upperThresholdPc
Type: SystemSingle
The upper threshold percent.
upperThresholdPassPc
Type: SystemSingle
Value to use if upper threshold is exceeded.

Return Value

Type: IBitmapImage
A new image instance with effect applied.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException upperThresholdPc or lowerThresholdPc or upperThresholdPassPc or lowerThresholdPassPc
ArgumentExceptionUpper threshold must be greater than or equal to lower threshold.
See Also