magickCompositeImageGravity method

Future<bool> magickCompositeImageGravity({
  1. required MagickWand sourceWand,
  2. required CompositeOperator compose,
  3. required GravityType gravity,
})

Composite one image onto another using the specified gravity.

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

  • sourceWand: the magick wand holding source image.
  • compose: This operator affects how the composite is applied to the image. The default is Over.
  • gravity: positioning gravity.

Implementation

Future<bool> magickCompositeImageGravity({
  required MagickWand sourceWand,
  required CompositeOperator compose,
  required GravityType gravity,
}) async =>
    await _magickCompute(
      _magickCompositeImageGravity,
      _MagickCompositeImageGravityParams(
        _wandPtr.address,
        sourceWand._wandPtr.address,
        compose.index,
        gravity.value,
      ),
    );