RasterImageExtension
Inheritance: java.lang.Object
public final class RasterImageExtension
Class with masks extension methods for RasterImage.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
source | RasterImage |
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:
Parameter | Type | Description |
---|---|---|
source | RasterImage | Raster image for the algorithm to work over. |
settings | MagicWandSettings | The 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:
Parameter | Type | Description |
---|---|---|
image | RasterImage | Image to apply mask to. |
mask | IImageMask | The mask to be applied. |