ColorChange

Inheritance: java.lang.Object, com.aspose.slides.PVIObject, com.aspose.slides.ImageTransformOperation

All Implemented Interfaces: com.aspose.slides.IColorChange, com.aspose.slides.IVisualEffect

public class ColorChange extends ImageTransformOperation implements IColorChange, IVisualEffect

Represents a Color Change effect. Instances of FromColor are replaced with instances of ToColor.

Methods

Method Description
getFromColor() Color which will be replaced.
getToColor() Color which will replace.
getEffective() Gets effective Color Change effect data with the inheritance applied.
getVersion()
equals(Object obj) Determines whether the specified ColorChange is equal to the current ColorChange.
hashCode() Serves as a hash function for a particular type.

getFromColor()

public final IColorFormat getFromColor()

Color which will be replaced. Read-only IColorFormat.

Returns: IColorFormat

getToColor()

public final IColorFormat getToColor()

Color which will replace. Read-only IColorFormat.

Returns: IColorFormat

getEffective()

public final IColorChangeEffectiveData getEffective()

Gets effective Color Change effect data with the inheritance applied.

Returns: IColorChangeEffectiveData - A IColorChangeEffectiveData.

getVersion()

public long getVersion()

Version. Read-only long.

Returns: long

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified ColorChange is equal to the current ColorChange.

Parameters:

Parameter Type Description
obj java.lang.Object The ColorChange to compare.

Returns: boolean - true if objects are equal; otherwise, false.

hashCode()

public int hashCode()

Serves as a hash function for a particular type.

Returns: int - A hash code for the current object.