RasterImageExtension Class

Summary: Class with masks extension methods for RasterImage.

Module: aspose.imaging.magicwand

Full Name: aspose.imaging.magicwand.RasterImageExtension

Aspose.Imaging Version: 24.5.0

Methods

NameDescription
apply_mask(image, mask)Applies IImageMask to the RasterImage.
select_mask(source, settings)Creates a ImageBitMask with selection of pixels with colors similar to the color of the reference point based on MagicWandSettings.

Method: apply_mask(image, mask) [static]

 apply_mask(image, mask) 

Applies IImageMask to the RasterImage.

Parameters:

ParameterTypeDescription
imageRasterImageImage to apply mask to.
maskIImageMaskThe mask to be applied.

Method: select_mask(source, settings) [static]

 select_mask(source, settings) 

Creates a ImageBitMask with selection of pixels with colors similar to the color of the reference point based on MagicWandSettings.

Parameters:

ParameterTypeDescription
sourceRasterImageRaster image for the algorithm to work over.
settingsMagicWandSettingsThe settings used to process the selection, includes the reference point.

Returns

TypeDescription
ImageBitMaskNew ImageBitMask.