property MagicWandSize: Integer;
Specifies the diameter of the area to sample to determine the selection color.
By default, MagicWandSize
is 1, which means only the color of the clicked pixel is used as the basis for the selection. If a larger value is specified then an average of all colors within a circular area will be used.
// Average colors in a 5x5 pixel circle to determine the selection color
ImageEnView1.MagicWandSize := 5;
// Average colors from clicked pixel, plus the pixels above, below and to the left and right
ImageEnView1.MagicWandSize := 3;
// Only the clicked pixel is considered
ImageEnView1.MagicWandSize := 1;