drawComposite method
Future<void>
drawComposite({
- required CompositeOperator compose,
- required double x,
- required double y,
- required double width,
- required double height,
- 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 operatorx
: x ordinate of top left cornery
: y ordinate of top left cornerwidth
: 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,
),
);