magickTrimImage method

Future<bool> magickTrimImage(
  1. double fuzz
)

MagickTrimImage() remove edges that are the background color from the image.

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

  • fuzz: By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.

Implementation

Future<bool> magickTrimImage(double fuzz) async => await _magickCompute(
      _magickTrimImage,
      _MagickTrimImageParams(_wandPtr.address, fuzz),
    );