magickRotateImage method

Future<bool> magickRotateImage({
  1. required PixelWand background,
  2. required double degrees,
})

MagickRotateImage() rotates an image the specified number of degrees. Empty triangles left over from rotating the image are filled with the background color.

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

  • background: the background pixel wand.
  • degrees: the number of degrees to rotate the image.

Implementation

Future<bool> magickRotateImage({
  required PixelWand background,
  required double degrees,
}) async =>
    await _magickCompute(
      _magickRotateImage,
      _MagickRotateImageParams(
        _wandPtr.address,
        background._wandPtr.address,
        degrees,
      ),
    );