RasterImageExtension

Inheritance: java.lang.Object

public final class RasterImageExtension

Class with masks extension methods for RasterImage.

Methods

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

selectMask(RasterImage source)

public static ImageBitMask selectMask(RasterImage source)

Parameters:

ParameterTypeDescription
sourceRasterImage

Returns: ImageBitMask

selectMask(RasterImage source, MagicWandSettings settings)

public static ImageBitMask selectMask(RasterImage source, MagicWandSettings 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: ImageBitMask - New ImageBitMask.

applyMask(RasterImage image, IImageMask mask)

public static void applyMask(RasterImage image, IImageMask mask)

Applies IImageMask to the RasterImage.

Parameters:

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