ColorOperation

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IColorOperation

public class ColorOperation implements IColorOperation

Represents different color operations used for color transformations. Immutable object.

Constructors

ConstructorDescription
ColorOperation(int op)Creates new color transform operation.
ColorOperation(int op, float parameter)Creates new color transform operation.

Methods

MethodDescription
getOperationType()Returns or sets the type of an operation.
getParameter()Returns a parameter of an operation.
equals(Object obj)Determines whether the two ColorOperation instances are equal.
hashCode()Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

ColorOperation(int op)

public ColorOperation(int op)

Creates new color transform operation.

Parameters:

ParameterTypeDescription
opintOperation type.

ColorOperation(int op, float parameter)

public ColorOperation(int op, float parameter)

Creates new color transform operation.

Parameters:

ParameterTypeDescription
opintOperation type.
parameterfloatOperation parameter.

getOperationType()

public final int getOperationType()

Returns or sets the type of an operation. Read-only ColorTransformOperation.

Returns: int

getParameter()

public final float getParameter()

Returns a parameter of an operation. Read-only float.

Returns: float

equals(Object obj)

public boolean equals(Object obj)

Determines whether the two ColorOperation instances are equal.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe ColorOperation to compare with the current ColorOperation.

Returns: boolean - true if the specified ColorOperation is equal to the current ColorOperation; otherwise, false.

hashCode()

public int hashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns: int