magickSmushImages method

Future<MagickWand?> magickSmushImages({
  1. required bool stack,
  2. required int offset,
})

MagickSmushImages() takes all images from the current image pointer to the end of the image list and smushes them to each other top-to-bottom if the stack parameter is true, otherwise left-to-right.

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

Don't forget to call destroyMagickWand on the returned MagickWand when done.

  • stack: By default, images are stacked left-to-right. Set stack to true to stack them top-to-bottom.
  • offset: minimum distance in pixels between images.

Implementation

Future<MagickWand?> magickSmushImages({
  required bool stack,
  required int offset,
}) async =>
    MagickWand._fromAddress(
      await _magickCompute(
        _magickSmushImages,
        _MagickSmushImagesParams(
          _wandPtr.address,
          stack,
          offset,
        ),
      ),
    );