magickContrastStretchImage method

Future<bool> magickContrastStretchImage({
  1. required double whitePoint,
  2. required double blackPoint,
})

Enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available. You can also reduce the influence of a particular channel with a gamma value of 0.

This method runs inside an isolate different from the main isolate.

  • blackPoint: the black point.
  • whitePoint: the white point.

Implementation

Future<bool> magickContrastStretchImage(
        {required double whitePoint, required double blackPoint}) async =>
    await _magickCompute(
      _magickContrastStretchImage,
      _MagickContrastStretchImageParams(
        _wandPtr.address,
        whitePoint,
        blackPoint,
      ),
    );