GrayScale

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

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

public final class GrayScale extends ImageTransformOperation implements IGrayScale, IVisualEffect

Represents a Gray Scale effect. Converts all effect color values to a shade of gray, corresponding to their luminance. Effect alpha (opacity) values are unaffected.

Methods

MethodDescription
getEffective()Gets effective Gray Scale effect data with the inheritance applied.
equals(Object obj)Determines whether the specified GrayScale is equal to the current GrayScale.
hashCode()Serves as a hash function for a particular type.

getEffective()

public final IGrayScaleEffectiveData getEffective()

Gets effective Gray Scale effect data with the inheritance applied.

Returns: IGrayScaleEffectiveData - A IGrayScaleEffectiveData.

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

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