magickColorThresholdImage method

Future<bool> magickColorThresholdImage({
  1. required PixelWand startColor,
  2. required PixelWand stopColor,
})

Forces all pixels in the color range to white otherwise black.

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

  • startColor : the start color pixel wand.
  • stopColor : the stop color pixel wand.

Implementation

Future<bool> magickColorThresholdImage(
        {required PixelWand startColor,
        required PixelWand stopColor}) async =>
    await _magickCompute(
      _magickColorThresholdImage,
      _MagickColorThresholdImageParams(
        _wandPtr.address,
        startColor._wandPtr.address,
        stopColor._wandPtr.address,
      ),
    );