Click or drag to resize

IBitmapImageThresholdColour Method (Int32, Single, 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[] colours,
	float matchAccuracy,
	int defaultColourRGB
)

Parameters

colours
Type: SystemInt32
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.
defaultColourRGB
Type: SystemInt32
Default colour for non matches.

Return Value

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