magickCompositeImage method

Future<bool> magickCompositeImage({
  1. required MagickWand sourceImage,
  2. required CompositeOperator compose,
  3. required bool clipToSelf,
  4. required int x,
  5. required int y,
})

Composite one image onto another at the specified offset.

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

  • sourceImage: the magick wand holding source image
  • compose: This operator affects how the composite is applied to the image. The default is Over. These are some of the compose methods available.
  • clipToSelf: set to true to limit composition to area composed.
  • x: the column offset of the composited image.
  • y: the row offset of the composited image.

Implementation

Future<bool> magickCompositeImage({
  required MagickWand sourceImage,
  required CompositeOperator compose,
  required bool clipToSelf,
  required int x,
  required int y,
}) async =>
    await _magickCompute(
      _magickCompositeImage,
      _MagickCompositeImageParams(
        _wandPtr.address,
        sourceImage._wandPtr.address,
        compose.index,
        clipToSelf,
        x,
        y,
      ),
    );