magickScaleImage method

Future<bool> magickScaleImage({
  1. required int columns,
  2. required int rows,
})

MagickScaleImage() scales the size of an image to the given dimensions.

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

  • columns: the number of columns in the scaled image.
  • rows: the number of rows in the scaled image.

Implementation

Future<bool> magickScaleImage({
  required int columns,
  required int rows,
}) async =>
    await _magickCompute(
      _magickScaleImage,
      _MagickScaleImageParams(
        _wandPtr.address,
        columns,
        rows,
      ),
    );