The COMPDATA structure contains the values to be used for thresholding and redistributing the bitmap's color component values for the LBitmap::ColorThreshold function.
The size of the structure. Should be set to sizeof(COMPDATA).
Value that represents the minimum boundary used to threshold the specific color.
Value that represents the maximum boundary used to threshold the specific color.
Value that represents the value that should be distributed to the thresholded component. Possible values are:
|CLTH_TYP_BANDPASS||[0x00000000] The values falling outside the range are modified.|
|CLTH_TYP_BANDREJECT||[0x00000001] The values falling inside the range are modified.|
|CLTH_MOD_CHANNEL||[0x00000000] Each channel component is modified independently.|
|CLTH_MOD_ALL||[0x00000010] The pixel is rejected the test if one of the component is rejected.|
|CLTH_VALUE_MIN||[0x00000000] The rejected values are set to 0.|
|CLTH_VALUE_MAX||[0x00000100] The rejected values are set to the maximum value|
|CLTH_VALUE_CLAMP||[0x00000200] The rejected component values less that nMin go to the minimum value in the used color space component and the rejected component values greater than nMax go to the maximum value in the used color space component. This works only with the CLTH_MOD_CHANNEL flag.|
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries