magickThresholdImage method
MagickThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to threshold. The result is a high-contrast, two color image.
This method runs inside an isolate different from the main isolate.
threshold
: Define the threshold value.
Implementation
Future<bool> magickThresholdImage(double threshold) async =>
await _magickCompute(
_magickThresholdImage,
_MagickThresholdImageParams(
_wandPtr.address,
threshold,
),
);