drawComposite method

Future<void> drawComposite({
  1. required CompositeOperator compose,
  2. required double x,
  3. required double y,
  4. required double width,
  5. required double height,
  6. required MagickWand magickWand,
})

DrawComposite() composites an image onto the current image, using the specified composition operator, specified position, and at the specified size.

This method runs in a different isolate than the main isolate.

  • compose : composition operator
  • x : x ordinate of top left corner
  • y : y ordinate of top left corner
  • width : Width to resize image to prior to compositing. Specify zero to use existing width.
  • height : Height to resize image to prior to compositing. Specify zero to use existing height.
  • magickWand : Image to composite is obtained from this wand.

Implementation

Future<void> drawComposite({
  required CompositeOperator compose,
  required double x,
  required double y,
  required double width,
  required double height,
  required MagickWand magickWand,
}) async =>
    await _magickCompute(
      _drawComposite,
      _DrawCompositeParams(
        _wandPtr.address,
        compose,
        x,
        y,
        width,
        height,
        magickWand._wandPtr.address,
      ),
    );