magickLinearStretchImage method

Future<bool> magickLinearStretchImage({
  1. required double blackPoint,
  2. required double whitePoint,
})

MagickLinearStretchImage() stretches with saturation the image intensity. You can also reduce the influence of a particular channel with a gamma value of 0.

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

  • blackPoint: the black point.
  • whitePoint: the white point.

Implementation

Future<bool> magickLinearStretchImage({
  required double blackPoint,
  required double whitePoint,
}) async =>
    await _magickCompute(
      _magickLinearStretchImage,
      _MagickLinearStretchImageParams(
        _wandPtr.address,
        blackPoint,
        whitePoint,
      ),
    );