# setPixelationThreshold method

void setPixelationThreshold(

1. int pixelationThreshold

)

Sets the pixelation detection threshold. Above this threshold, the image is probably pixelated. Hint: Default value is 90.

param pixelationThreshold Pixelation detection threshold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setPixelationThreshold(int pixelationThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetPixelationThreshold(_pHandle.value, pixelationThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }