MagicWandTool Class

Summary: The class for magic wand algorithm main logic.

Module: aspose.imaging.magicwand

Full Name: aspose.imaging.magicwand.MagicWandTool

Inheritance: IPartialArgb32PixelLoader

Aspose.Imaging Version: 24.5.0

Methods

NameDescription
process(pixels_rectangle, pixels, start, end)Processes the loaded pixels .
select(source, settings)Creates a new ImageBitMask based on MagicWandSettings and source RasterImage.

Method: process(pixels_rectangle, pixels, start, end)

 process(pixels_rectangle, pixels, start, end) 

Processes the loaded pixels .

Parameters:

ParameterTypeDescription
pixels_rectangleRectangleThe pixels rectangle.
pixelsintThe 32-bit ARGB pixels.
startPointThe start pixels point. If not equal to (left,top) meaning that it is not full rectangle we have.
endPointThe end pixels point. If not equal to (right,bottom) meaning that it is not full rectangle we have.

Method: select(source, settings) [static]

 select(source, settings) 

Creates a new ImageBitMask based on MagicWandSettings and source RasterImage.

Parameters:

ParameterTypeDescription
sourceRasterImageRaster image for the algorithm to work over.
settingsMagicWandSettingsSettings of magic wand algorithm used in creating mask.

Returns

TypeDescription
ImageBitMaskNew ImageBitMask.