Duotone

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

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

public final class Duotone extends ImageTransformOperation implements IDuotone, IVisualEffect

Represents a Duotone effect. For each pixel, combines Color1 and Color2 through a linear interpolation to determine the new color for that pixel.

Methods

MethodDescription
getColor1()Returns target color format for dark pixels.
getColor2()Returns target color format for light pixels.
getEffective()Gets effective Duotone effect data with the inheritance applied.
getVersion()
equals(Object obj)Determines whether the specified Duotone is equal to the current Duotone.
hashCode()Serves as a hash function for a particular type.

getColor1()

public final IColorFormat getColor1()

Returns target color format for dark pixels. Read-only IColorFormat.

Returns: IColorFormat

getColor2()

public final IColorFormat getColor2()

Returns target color format for light pixels. Read-only IColorFormat.

Returns: IColorFormat

getEffective()

public final IDuotoneEffectiveData getEffective()

Gets effective Duotone effect data with the inheritance applied.

Returns: IDuotoneEffectiveData - A IDuotoneEffectiveData.

getVersion()

public long getVersion()

Version. Read-only long.

Returns: long

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe Duotone 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.