MagicWandTool Class
Summary: The class for magic wand algorithm main logic.
Module: aspose.imaging.magicwand
Full Name: aspose.imaging.magicwand.MagicWandTool
Inheritance: IPartialArgb32PixelLoader
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
pixels_rectangle | Rectangle | The pixels rectangle. |
pixels | int | The 32-bit ARGB pixels. |
start | Point | The start pixels point. If not equal to (left,top) meaning that it is not full rectangle we have. |
end | Point | The 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:
Parameter | Type | Description |
---|---|---|
source | RasterImage | Raster image for the algorithm to work over. |
settings | MagicWandSettings | Settings of magic wand algorithm used in creating mask. |
Returns
Type | Description |
---|---|
ImageBitMask | New ImageBitMask. |