magickPreviewImages method

Future<MagickWand?> magickPreviewImages(
  1. PreviewType preview
)

MagickPreviewImages() tiles 9 thumbnails of the specified image with an image processing operation applied at varying strengths. This helpful to quickly pin-point an appropriate parameter for an image processing operation.

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

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

  • preview: the image processing operation.

Implementation

Future<MagickWand?> magickPreviewImages(PreviewType preview) async =>
    MagickWand._fromAddress(
      await _magickCompute(
        _magickPreviewImages,
        _MagickPreviewImagesParams(
          _wandPtr.address,
          preview,
        ),
      ),
    );