com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ImageTransformOperationCollection

    • Method Detail

      • removeAt

        public final void removeAt(int index)

        Removes an image effect from a collection at the specified index.

        Specified by:
        removeAt in interface IImageTransformOperationCollection
        Parameters:
        index - Index of an image effect that should be deleted.
      • addAlphaBiLevelEffect

        public final IAlphaBiLevel addAlphaBiLevelEffect(float threshold)

        Adds the new Alpha Bi-Level effect to the end of a collection.

        Specified by:
        addAlphaBiLevelEffect in interface IImageTransformOperationCollection
        Parameters:
        threshold - The threshold value for the alpha bi-level effect.
        Returns:
        Index of the new image effect in a collection.
      • addBiLevelEffect

        public final IBiLevel addBiLevelEffect(float threshold)

        Adds the new Bi-Level (black/white) effect to the end of a collection.

        Specified by:
        addBiLevelEffect in interface IImageTransformOperationCollection
        Parameters:
        threshold - the luminance threshold for the Bi-Level effect. Values greater than or equal to the threshold are set to white. Values lesser than the threshold are set to black.
        Returns:
        Index of the new image effect in a collection.
      • addBlurEffect

        public final IBlur addBlurEffect(double radius,
                                         boolean grow)

        Adds the new Blur effect to the end of a collection.

        Specified by:
        addBlurEffect in interface IImageTransformOperationCollection
        Parameters:
        radius - The radius of blur.
        grow - Specifies whether the bounds of the object should be grown as a result of the blurring. True indicates the bounds are grown while false indicates that they are not.
        Returns:
        Index of the new image effect in a collection.
      • addHSLEffect

        public final IHSL addHSLEffect(float hue,
                                       float saturation,
                                       float luminance)

        Adds the new Hue/Saturation/Luminance effect to the end of a collection.

        Specified by:
        addHSLEffect in interface IImageTransformOperationCollection
        Parameters:
        hue - The number of degrees by which the hue is adjusted.
        saturation - The percentage by which the saturation is adjusted.
        luminance - The percentage by which the luminance is adjusted.
        Returns:
        Index of the new image effect in a collection.
      • addLuminanceEffect

        public final ILuminance addLuminanceEffect(float brightness,
                                                   float contrast)

        Adds the new Luminance effect to the end of a collection.

        Specified by:
        addLuminanceEffect in interface IImageTransformOperationCollection
        Parameters:
        brightness - The percent to change the brightness.
        contrast - The percent to change the contrast.
        Returns:
        Index of the new image effect in a collection.
      • addTintEffect

        public final ITint addTintEffect(float hue,
                                         float amount)

        Adds the new Tint effect to the end of a collection.

        Specified by:
        addTintEffect in interface IImageTransformOperationCollection
        Parameters:
        hue - The hue towards which to tint.
        amount - Specifies by how much the color value is shifted.
        Returns:
        Index of the new image effect in a collection.
      • size

        public final int size()

        Returns the number of image effects in a collection. Read-only int.

        Specified by:
        size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>
      • isReadOnly

        public final boolean isReadOnly()

        Gets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only. Read-only boolean.

        Specified by:
        isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>
        Returns:
        true if the System.Collections.Generic.ICollection`1 is read-only; otherwise, false.
      • addItem

        public final void addItem(IImageTransformOperation operation)

        Adds the new image effect to the end of a collection.

        Specified by:
        addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>
        Parameters:
        operation - The image effect to add to the end of a collection.
      • clear

        public final void clear()

        Removes all image effects from a collection.

        Specified by:
        clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>
      • containsItem

        public final boolean containsItem(IImageTransformOperation item)

        Determines whether the System.Collections.Generic.ICollection`1 contains a specific value.

        Specified by:
        containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>
        Parameters:
        item - The object to locate in the System.Collections.Generic.ICollection`1.
        Returns:
        true if item is found in the System.Collections.Generic.ICollection`1; otherwise, false.
      • copyToTArray

        public final void copyToTArray(IImageTransformOperation[] array,
                                       int arrayIndex)

        Copies the elements of the System.Collections.Generic.ICollection`1 to an Array, starting at a particular Array index.

        Specified by:
        copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>
        Parameters:
        array - The one-dimensional Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The Array must have zero-based indexing.
        arrayIndex - The zero-based index in array at which copying begins.
        Throws:
        com.aspose.ms.System.ArgumentNullException - array is null.
        com.aspose.ms.System.ArgumentOutOfRangeException - arrayIndex is less than 0.
        com.aspose.ms.System.ArgumentException - The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex to the end of the destination array.
      • removeItem

        public final boolean removeItem(IImageTransformOperation item)

        Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1.

        Specified by:
        removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>
        Parameters:
        item - The object to remove from the System.Collections.Generic.ICollection`1.
        Returns:
        true if item was successfully removed from the System.Collections.Generic.ICollection`1; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection`1.
        Throws:
        com.aspose.ms.System.NotSupportedException - The System.Collections.Generic.ICollection`1 is read-only.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IImageTransformOperation> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IImageTransformOperation>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IImageTransformOperation>
        Specified by:
        iterator in interface java.lang.Iterable<IImageTransformOperation>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • getVersion

        public long getVersion()

        Version. Read-only long.

      • getParent_Immediate

        public com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.