magickWhiteThresholdImage method

Future<bool> magickWhiteThresholdImage(
  1. PixelWand threshold
)

MagickWhiteThresholdImage() is like ThresholdImage() but force all pixels above the threshold into white while leaving all pixels below the threshold unchanged.

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

  • threshold: the threshold color.

Implementation

Future<bool> magickWhiteThresholdImage(PixelWand threshold) async =>
    await _magickCompute(
      _magickWhiteThresholdImage,
      _MagickWhiteThresholdImageParams(
        _wandPtr.address,
        threshold._wandPtr.address,
      ),
    );