com.aspose.slides
Class ImageTransformOperationCollection

java.lang.Object
  extended by com.aspose.slides.ImageTransformOperationCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericCollection<IImageTransformOperation>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IImageTransformOperation>, com.aspose.ms.System.Collections.IEnumerable<IImageTransformOperation>, IImageTransformOperationCollection, java.lang.Iterable<IImageTransformOperation>

public final class ImageTransformOperationCollection
extends java.lang.Object
implements IImageTransformOperationCollection

Represents a collection of effects apllied to an image.


Method Summary
 IAlphaBiLevel addAlphaBiLevelEffect(float threshold)
           Adds the new Alpha Bi-Level effect to the end of a collection.
 IAlphaCeiling addAlphaCeilingEffect()
           Adds the new Alpha Ceiling effect to the end of a collection.
 IAlphaFloor addAlphaFloorEffect()
           Adds the new Alpha Floor effect to the end of a collection.
 IAlphaInverse addAlphaInverseEffect()
           Adds the new Alpha Inverse effect to the end of a collection.
 IAlphaModulate addAlphaModulateEffect()
           Adds the new Alpha Modulate effect to the end of a collection.
 IAlphaModulateFixed addAlphaModulateFixedEffect(float amount)
           Adds the new Alpha Modulate Fixed effect to the end of a collection.
 IAlphaReplace addAlphaReplaceEffect(float alpha)
           Adds the new Alpha Replace effect to the end of a collection.
 IBiLevel addBiLevelEffect(float threshold)
           Adds the new Bi-Level (black/white) effect to the end of a collection.
 IBlur addBlurEffect(double radius, boolean grow)
           Adds the new Blur effect to the end of a collection.
 IColorChange addColorChangeEffect()
           Adds the new Color Change effect to the end of a collection.
 IColorReplace addColorReplaceEffect()
           Adds the new Color Replacement effect to the end of a collection.
 IDuotone addDuotoneEffect()
           Adds the new Duotone effect to the end of a collection.
 IFillOverlay addFillOverlayEffect()
           Adds the new Fill Overlay effect to the end of a collection.
 IGrayScale addGrayScaleEffect()
           Adds the new Gray Scale effect to the end of a collection.
 IHSL addHSLEffect(float hue, float saturation, float luminance)
           Adds the new Hue/Saturation/Luminance effect to the end of a collection.
 void addItem(IImageTransformOperation operation)
           Adds the new image effect to the end of a collection.
 ILuminance addLuminanceEffect(float brightness, float contrast)
           Adds the new Luminance effect to the end of a collection.
 ITint addTintEffect(float hue, float amount)
           Adds the new Tint effect to the end of a collection.
 void clear()
           Removes all image effects from a collection.
 boolean containsItem(IImageTransformOperation item)
           Determines whether the T:System.Collections.Generic.ICollection`1 contains a specific value.
 void copyToTArray(IImageTransformOperation[] array, int arrayIndex)
           Copies the elements of the T:System.Collections.Generic.ICollection`1 to an T:System.Array, starting at a particular T:System.Array index.
 IImageTransformOperation get_Item(int index)
           Returns an ImageTransformOperation from the collection by it's index.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 boolean isReadOnly()
           Gets a value indicating whether the T:System.Collections.Generic.ICollection`1 is read-only.
 com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IImageTransformOperation> iterator()
           Returns an enumerator that iterates through the collection.
 void removeAt(int index)
           Removes an image effect from a collection at the specified index.
 boolean removeItem(IImageTransformOperation item)
           Removes the first occurrence of a specific object from the T:System.Collections.Generic.ICollection`1.
 int size()
           Returns the number of image effects in a collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public 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 boolean isReadOnly()

Gets a value indicating whether the T: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 T:System.Collections.Generic.ICollection`1 is read-only; otherwise, false.

get_Item

public IImageTransformOperation get_Item(int index)

Returns an ImageTransformOperation from the collection by it's index.

Specified by:
get_Item in interface IImageTransformOperationCollection
Parameters:
index -
Returns:

removeAt

public 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.

removeItem

public boolean removeItem(IImageTransformOperation item)

Removes the first occurrence of a specific object from the T: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 T:System.Collections.Generic.ICollection`1.
Returns:
true if item was successfully removed from the T:System.Collections.Generic.ICollection`1; otherwise, false. This method also returns false if item is not found in the original T:System.Collections.Generic.ICollection`1.
Throws:
T:System.NotSupportedException - The T:System.Collections.Generic.ICollection`1 is read-only.

clear

public void clear()

Removes all image effects from a collection.

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

containsItem

public boolean containsItem(IImageTransformOperation item)

Determines whether the T: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 T:System.Collections.Generic.ICollection`1.
Returns:
true if item is found in the T:System.Collections.Generic.ICollection`1; otherwise, false.

copyToTArray

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

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

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

addItem

public 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.

addAlphaBiLevelEffect

public 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.

addAlphaCeilingEffect

public IAlphaCeiling addAlphaCeilingEffect()

Adds the new Alpha Ceiling effect to the end of a collection.

Specified by:
addAlphaCeilingEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addAlphaFloorEffect

public IAlphaFloor addAlphaFloorEffect()

Adds the new Alpha Floor effect to the end of a collection.

Specified by:
addAlphaFloorEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addAlphaInverseEffect

public IAlphaInverse addAlphaInverseEffect()

Adds the new Alpha Inverse effect to the end of a collection.

Specified by:
addAlphaInverseEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addAlphaModulateEffect

public IAlphaModulate addAlphaModulateEffect()

Adds the new Alpha Modulate effect to the end of a collection.

Specified by:
addAlphaModulateEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addAlphaModulateFixedEffect

public IAlphaModulateFixed addAlphaModulateFixedEffect(float amount)

Adds the new Alpha Modulate Fixed effect to the end of a collection.

Specified by:
addAlphaModulateFixedEffect in interface IImageTransformOperationCollection
Parameters:
amount - The percentage amount to scale the alpha.
Returns:
Index of the new image effect in a collection.

addAlphaReplaceEffect

public IAlphaReplace addAlphaReplaceEffect(float alpha)

Adds the new Alpha Replace effect to the end of a collection.

Specified by:
addAlphaReplaceEffect in interface IImageTransformOperationCollection
Parameters:
alpha - The new opacity value.
Returns:
Index of the new image effect in a collection.

addBiLevelEffect

public 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 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.

addColorChangeEffect

public IColorChange addColorChangeEffect()

Adds the new Color Change effect to the end of a collection.

Specified by:
addColorChangeEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addColorReplaceEffect

public IColorReplace addColorReplaceEffect()

Adds the new Color Replacement effect to the end of a collection.

Specified by:
addColorReplaceEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addDuotoneEffect

public IDuotone addDuotoneEffect()

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

Specified by:
addDuotoneEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addFillOverlayEffect

public IFillOverlay addFillOverlayEffect()

Adds the new Fill Overlay effect to the end of a collection.

Specified by:
addFillOverlayEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addGrayScaleEffect

public IGrayScale addGrayScaleEffect()

Adds the new Gray Scale effect to the end of a collection.

Specified by:
addGrayScaleEffect in interface IImageTransformOperationCollection
Returns:
Index of the new image effect in a collection.

addHSLEffect

public 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 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 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.

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.


iterator

public 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 T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.