magickRandomThresholdImage method
MagickRandomThresholdImage() 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.
low
: the low threshold. Ranges from 0 to QuantumRange.high
: the high threshold. Ranges from 0 to QuantumRange.
Implementation
Future<bool> magickRandomThresholdImage({
required double low,
required double high,
}) async =>
await _magickCompute(
_magickRandomThresholdImage,
_MagickRandomThresholdImageParams(
_wandPtr.address,
low,
high,
),
);