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
Constructor | Description |
---|---|
ColorOperation(int op) | Creates new color transform operation. |
ColorOperation(int op, float parameter) | Creates new color transform operation. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
op | int | Operation type. |
ColorOperation(int op, float parameter)
public ColorOperation(int op, float parameter)
Creates new color transform operation.
Parameters:
Parameter | Type | Description |
---|---|---|
op | int | Operation type. |
parameter | float | Operation 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:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The 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