Click or drag to resize
ImageToolsGrayThreshold Method (PictureMediaBuffer, Byte, Byte, CompareMethod)
Sets pixels to a new value when they are greater than a threshold value.

Namespace: StreamCoders.Imaging
Assembly: MediaSuite (in MediaSuite.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public static void GrayThreshold(
	PictureMediaBuffer inputBuffer,
	byte threshold,
	byte newValue,
	CompareMethod compareMethod
)

Parameters

inputBuffer
Type: StreamCodersPictureMediaBuffer
[in,out] Input buffer containing 8-bit gray scale image.
threshold
Type: SystemByte
The threshold.
newValue
Type: SystemByte
The new value to assign when threshold is reached.
compareMethod
Type: StreamCoders.ImagingCompareMethod
See Also