magickExtentImage method

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

Extends the image as defined by the geometry, gravity, and wand background color. Set the (x,y) offset of the geometry to move the original wand relative to the extended wand.

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

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

Implementation

Future<bool> magickExtentImage({
  required int width,
  required int height,
  required int x,
  required int y,
}) async =>
    await _magickCompute(
      _magickExtentImage,
      _MagickExtentImageParams(
        _wandPtr.address,
        width,
        height,
        x,
        y,
      ),
    );