Packages

 

com.aspose.imaging.masking

Class ImageMasking



  • public class ImageMasking
    extends Object

    Provides image masking operations

    • Constructor Detail

      • ImageMasking

        public ImageMasking(RasterImage sourceImage)

        Initializes a new instance of the ImageMasking class.

        Parameters:
        sourceImage - The source image.
        Throws:
        com.aspose.ms.System.ArgumentNullException - source image is null.
    • Method Detail

      • decompose

        public final MaskingResult[] decompose(MaskingOptions options)

        Performs the decompose operation using specified masking options

        Parameters:
        options - The masking options.
        Returns:
        Result of masking operation as array of segment image providers.
      • decomposeAsync

        public final IAsyncTask decomposeAsync(MaskingOptions options)

        Creates the asynchronous decompose task using specified masking options.

        Parameters:
        options - The masking options.
        Returns:
        The asynchronous decompose task
      • createSession

        public final IMaskingSession createSession(MaskingOptions options)

        Creates the masking session which can perform retraining decompose operations.

        Parameters:
        options - The options.
        Returns:
        the masking session which can perform retraining decompose operations.