magickWaveImage method

Future<bool> magickWaveImage({
  1. required double amplitude,
  2. required double waveLength,
  3. required PixelInterpolateMethod method,
})

MagickWaveImage() creates a "ripple" effect in the image by shifting the pixels vertically along a sine wave whose amplitude and wavelength is specified by the given parameters.

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

  • amplitude: Define the amplitude of the sine wave.
  • waveLength: Define the wave length of the sine wave.
  • method: the pixel interpolation method.

Implementation

Future<bool> magickWaveImage({
  required double amplitude,
  required double waveLength,
  required PixelInterpolateMethod method,
}) async =>
    await _magickCompute(
      _magickWaveImage,
      _MagickWaveImageParams(
        _wandPtr.address,
        amplitude,
        waveLength,
        method,
      ),
    );