magickChopImage method

Future<bool> magickChopImage({
  1. required int width,
  2. required int height,
  3. required int x,
  4. required int y,
})

Removes a region of an image and collapses the image to occupy the removed portion.

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

  • width : the width of the region.
  • height : the height of the region.
  • x : the x offset of the region.
  • y : the y offset of the region.

Implementation

Future<bool> magickChopImage({
  required int width,
  required int height,
  required int x,
  required int y,
}) async =>
    await _magickCompute(
      _magickChopImage,
      _MagickChopImageParams(
        _wandPtr.address,
        width,
        height,
        x,
        y,
      ),
    );