Class FeatheringSettings

Class FeatheringSettings

Namespace: Aspose.Imaging.MagicWand.ImageMasks
Assembly: Aspose.Imaging.dll (25.7.0)

A feathering settings class.

public class FeatheringSettings
   {
       public double Start;
       public double End;
       public double Width;
   }

Inheritance

object FeatheringSettings

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

The example shows how to select a complicated area of an image using Magic Wand tool and the ability to interact with masks (invert, union, substract).

var imageFilePath = "input.png";
   using (RasterImage image = (RasterImage)Image.Load(imageFilePath))
   {
       image.MagicWandTool.Select(new MagicWandSettings(845, 128));
       image.MagicWandTool.Union(new MagicWandSettings(416, 387));
       image.MagicWandTool.Invert();
       image.MagicWandTool.Subtract(new MagicWandSettings(1482, 346) { Threshold = 69 });
       image.MagicWandTool.Subtract(new RectangleMask(0, 0, 800, 150));
       image.MagicWandTool.Subtract(new RectangleMask(0, 380, 600, 220));
       image.MagicWandTool.Subtract(new RectangleMask(930, 520, 110, 40));
       image.MagicWandTool.Subtract(new RectangleMask(1370, 400, 120, 200));
       image.MagicWandTool.GetFeathered(new FeatheringSettings() { Size = 3 });
       image.MagicWandTool.Apply();
       image.Save(outputFilePath);
   }

Constructors

FeatheringSettings()

public FeatheringSettings()
   {
      Minimum = 0;
      TaperType = TaperStyle.None;
      HorizontalScale = 100;
      VerticalScale = 100;
   }

Properties

Mode

Gets or sets the feathering algorithm mode.

public FeatheringMode Mode
   {
      get;
      set;
   }

Property Value

FeatheringMode

Size

Gets or sets the feathering size.

public int Size
   {
      get;
      set;
   }

Property Value

int

 English