magickContrastImage method

Future<bool> magickContrastImage(
  1. bool sharpen
)

Enhances the intensity differences between the lighter and darker elements of the image. Set sharpen to a value other than 0 to increase the image contrast otherwise the contrast is reduced.

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

  • sharpen: Increase or decrease image contrast.

Implementation

Future<bool> magickContrastImage(bool sharpen) async => await _magickCompute(
      _magickContrastImage,
      _MagickContrastImageParams(_wandPtr.address, sharpen),
    );