MagicWandSettings Class

Summary: A magic wand selection settings class.

Module: aspose.imaging.magicwand

Full Name: aspose.imaging.magicwand.MagicWandSettings

Constructors

NameDescription
MagicWandSettings(point)Initializes a new instance of the MagicWandSettings class.
MagicWandSettings(x, y)Initializes a new instance of the MagicWandSettings class.

Properties

NameTypeAccessDescription
area_of_interestRectangler/wGets or sets the bounds of the area for algorithm work.
color_compare_modeColorComparisonModer/wGets or sets the algorithm how colors are compared.
contiguous_modeboolr/wGets or sets a value indicating whether magic wand will define only contiguous pixels.
directional_modeFloodFillDirectionalModer/wGets or sets the mode of flood fill search algorithm: four of eight direction search.
pointPointrGets or sets the reference point for algorithm work.
thresholdintr/wGets or sets the tolerance level for pixels color comparison.

Constructor: MagicWandSettings(point)

 MagicWandSettings(point) 

Initializes a new instance of the MagicWandSettings class.

Parameters:

ParameterTypeDescription
pointPointThe reference point.

Constructor: MagicWandSettings(x, y)

 MagicWandSettings(x, y) 

Initializes a new instance of the MagicWandSettings class.

Parameters:

ParameterTypeDescription
xintThe x-coordinate of the reference point.
yintThe y-coordinate of the reference point.