magickSeparateImage method
MagickSeparateImage() separates a channel from the image and returns a grayscale image. A channel is a particular color component of each pixel in the image.
This method runs inside an isolate different from the main isolate.
channel
: the channel.
Implementation
Future<bool> magickSeparateImage(ChannelType channel) async =>
await _magickCompute(
_magickSeparateImage,
_MagickSeparateImageParams(
_wandPtr.address,
channel,
),
);