magickThresholdImageChannel method
Future<bool>
magickThresholdImageChannel({
- required ChannelType channel,
- required double threshold,
MagickThresholdImageChannel() 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. It differs from MagickThresholdImage() in that it lets you specify a channel.
This method runs inside an isolate different from the main isolate.
channel
: the channel.threshold
: Define the threshold value.
Implementation
Future<bool> magickThresholdImageChannel({
required ChannelType channel,
required double threshold,
}) async =>
await _magickCompute(
_magickThresholdImageChannel,
_MagickThresholdImageChannelParams(
_wandPtr.address,
channel,
threshold,
),
);