Duotone

Duotone class

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

equals

NameDescription
equals (Object)Determines whether the specified Duotone is equal to the current Duotone.

Parameters:

NameTypeDescription
objObjectThe Duotone to compare.

Returns: boolean


getColor1

NameDescription
getColor1 ()Returns target color format for dark pixels. Read-only IColorFormat.

Returns: ColorFormat


getColor2

NameDescription
getColor2 ()Returns target color format for light pixels. Read-only IColorFormat.

Returns: ColorFormat


getEffective

NameDescription
getEffective ()Gets effective Duotone effect data with the inheritance applied.

Returns: DuotoneEffectiveData


getVersion

NameDescription
getVersion ()

Returns: long


hashCode

NameDescription
hashCode ()Serves as a hash function for a particular type.

Returns: int