isPixelWandSimilar method

bool isPixelWandSimilar({
  1. required PixelWand other,
  2. required double fuzz,
})

IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.

  • other the other pixel wand.
  • fuzz any two colors that are less than or equal to this distance squared are consider similar.

Implementation

bool isPixelWandSimilar({
  required PixelWand other,
  required double fuzz,
}) =>
    _magickWandBindings.IsPixelWandSimilar(
      _wandPtr,
      other._wandPtr,
      fuzz,
    ).toBool();