ColorReplace

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

All Implemented Interfaces: com.aspose.slides.IColorReplace, com.aspose.slides.IVisualEffect, java.lang.Cloneable

public class ColorReplace extends ImageTransformOperation implements IColorReplace, IVisualEffect, Cloneable

Represents a Color Replacement effect. All effect colors are changed to a fixed color. Alpha values are unaffected.

Methods

Method Description
getColor() Returns color format which will replace color of every pixel.
getEffective() Gets effective Color Replacement effect data with the inheritance applied.
getVersion()
equals(Object obj) Determines whether the specified ColorReplace is equal to the current ColorReplace.
hashCode() Serves as a hash function for a particular type.

getColor()

public final IColorFormat getColor()

Returns color format which will replace color of every pixel. Read-only IColorFormat.

Returns: IColorFormat

getEffective()

public final IColorReplaceEffectiveData getEffective()

Gets effective Color Replacement effect data with the inheritance applied.

Returns: IColorReplaceEffectiveData - A IColorReplaceEffectiveData.

getVersion()

public long getVersion()

Version. Read-only long.

Returns: long

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

Parameter Type Description
obj java.lang.Object The ColorReplace 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.