Table of Contents

Class MaskingOptions

Namespace
Aspose.Imaging.Masking.Options
Assembly
Aspose.Imaging.dll

Represents the common image masking options.

public class MaskingOptions
Inheritance
MaskingOptions
Derived
Inherited Members

Constructors

MaskingOptions()

public MaskingOptions()

Fields

BackgroundObjectNumber

The background object number

public const int BackgroundObjectNumber = 0

Field Value

int

Properties

Args

Gets or sets the arguments for segmentation algorithm.

public IMaskingArgs Args { get; set; }

Property Value

IMaskingArgs

The arguments for segmentation algorithm.

BackgroundReplacementColor

Gets or sets the background replacement color.

public Color BackgroundReplacementColor { get; set; }

Property Value

Color

The background replacement color. This color will be used as background color in resulting images.

Decompose

Gets or sets a value indicating whether needless to separate each Shape from mask as individual object or as united object from mask separated from background.

public bool Decompose { get; set; }

Property Value

bool

true if decompose; otherwise, false.

ExportOptions

Gets or sets the image export options.

public ImageOptionsBase ExportOptions { get; set; }

Property Value

ImageOptionsBase

The image export options that will be used to create the resulting images.

MaskingArea

Gets or sets the masking area.

public Rectangle MaskingArea { get; set; }

Property Value

Rectangle

The masking area which is a partial area of the source image. Rectangle.Empty value means full source image area.

Method

Gets or sets the segmentation method.

public SegmentationMethod Method { get; set; }

Property Value

SegmentationMethod

The segmentation method.