magickShadeImage method

Future<bool> magickShadeImage({
  1. required bool gray,
  2. required double azimuth,
  3. required double elevation,
})

MagickShadeImage() shines a distant light on an image to create a three-dimensional effect. You control the positioning of the light with azimuth and elevation; azimuth is measured in degrees off the x axis and elevation is measured in pixels above the Z axis.

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

  • gray: A value other than zero shades the intensity of each pixel.
  • azimuth: Define the light source direction.
  • elevation: Define the light source direction.

Implementation

Future<bool> magickShadeImage({
  required bool gray,
  required double azimuth,
  required double elevation,
}) async =>
    await _magickCompute(
      _magickShadeImage,
      _MagickShadeImageParams(
        _wandPtr.address,
        gray,
        azimuth,
        elevation,
      ),
    );