 | 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
SyntaxIBitmapImage 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:
IBitmapImageA new image instance with effect applied.
Exceptions
See Also