magickRangeThresholdImage method

Future<bool> magickRangeThresholdImage({
  1. required double lowBlack,
  2. required double lowWhite,
  3. required double highWhite,
  4. required double highBlack,
})

MagickRangeThresholdImage() applies soft and hard thresholding.

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

Implementation

Future<bool> magickRangeThresholdImage({
  required double lowBlack,
  required double lowWhite,
  required double highWhite,
  required double highBlack,
}) async =>
    await _magickCompute(
      _magickRangeThresholdImage,
      _MagickRangeThresholdImageParams(
        _wandPtr.address,
        lowBlack,
        lowWhite,
        highWhite,
        highBlack,
      ),
    );