magickSetImageMask method

Future<bool> magickSetImageMask({
  1. required PixelMask type,
  2. required MagickWand clipMask,
})

MagickSetImageMask() sets image clip mask.

  • type: type of mask, ReadPixelMask or WritePixelMask.
  • clipMask: the clip_mask wand.

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

Implementation

Future<bool> magickSetImageMask({
  required PixelMask type,
  required MagickWand clipMask,
}) async =>
    await _magickCompute(
      _magickSetImageMask,
      _MagickSetImageMaskParams(
        _wandPtr.address,
        type,
        clipMask._wandPtr.address,
      ),
    );