ImageToolsGrayThreshold Method (PictureMediaBuffer, Byte, Byte, CompareMethod) |
Sets pixels to a new value when they are greater than a threshold value.
Namespace: StreamCoders.ImagingAssembly: MediaSuite (in MediaSuite.dll) Version: 2.0.5.0 (2.0.5.0)
Syntaxpublic static void GrayThreshold(
PictureMediaBuffer inputBuffer,
byte threshold,
byte newValue,
CompareMethod compareMethod
)
Public Shared Sub GrayThreshold (
inputBuffer As PictureMediaBuffer,
threshold As Byte,
newValue As Byte,
compareMethod As CompareMethod
)
public:
static void GrayThreshold(
PictureMediaBuffer^ inputBuffer,
unsigned char threshold,
unsigned char newValue,
CompareMethod compareMethod
)
static member GrayThreshold :
inputBuffer : PictureMediaBuffer *
threshold : byte *
newValue : byte *
compareMethod : CompareMethod -> unit
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