SetThreshold method

Sets the value for threshold filtering operations.


HRESULT retVal = object.SetThreshold(newVal);


  • newVal [in]
    Type: float

    Threshold value. This number can range from 0.0 and 1.0.


For the threshold filtering adjustment, each sample color channel whose value is below newVal*255 is set to 0. Each color channel with a value equal to or above that threshold is set to 255.