public final class RasterImageExtension extends Object
Class with masks extension methods for RasterImage.
| Modifier and Type | Method and Description |
|---|---|
static void |
applyMask(RasterImage image,
IImageMask mask)
Applies
IImageMask to the RasterImage. |
static ImageBitMask |
selectMask(RasterImage source) |
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. |
public static ImageBitMask selectMask(RasterImage source)
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.
source - Raster image for the algorithm to work over.settings - The settings used to process the selection, includes the reference point.ImageBitMask.public static void applyMask(RasterImage image, IImageMask mask)
Applies IImageMask to the RasterImage.
image - Image to apply mask to.mask - The mask to be applied.com.aspose.ms.System.ArgumentException - Thrown when the mask size is smaller than image.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.