Click or drag to resize

IBitmapImageThresholdColour Method (ValueTupleInt32, Int32, Int32, Single, ValueTupleInt32, Int32, Int32)

Performs colour thresholding by thresholding each pixel to one of the supplied colours. Colours not matching are set to the default colour.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage ThresholdColour(
	(int , int , int )[] rgbcols,
	float matchAccuracy,
	(int r, int g, int b) defaultColour
)

Parameters

rgbcols
Type: SystemValueTupleInt32, Int32, Int32
An array of colours, from 1 to 31 elements.
matchAccuracy
Type: SystemSingle
1.0 indicates exact match. A value less than 1.0 indicates less accurate match.
defaultColour
Type: SystemValueTupleInt32, Int32, Int32
Default colour for non matches.

Return Value

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