# correctGamma method

void correctGamma(

1. int contrast,
2. int brightness,
3. double gamma

)

Applies a gamma correction to the image.

param contrast Contrast coefficient, from -255 to 255, to be applied to the image. param brightness Brightness coefficient, from -255 to 255, to be applid to the image. param gamma Gamma coefficient, from 0.25 to 2.50, to be applied to the image. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void correctGamma(int contrast, int brightness, double gamma) {
      var err = faceSDK.id3FaceImage_CorrectGamma(_pHandle.value, contrast, brightness, gamma);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }