# setDynamicRangeThreshold method

void setDynamicRangeThreshold(

1. int dynamicRangeThreshold

)

Sets the face dynamic range threshold. Above this threshold, the dynamic range of the image in the face region is good enough. Hint: Default value is 128.

param dynamicRangeThreshold Face dynamic range threshold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setDynamicRangeThreshold(int dynamicRangeThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetDynamicRangeThreshold(_pHandle.value, dynamicRangeThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }