ColorOperation

ColorOperation class

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

ColorOperation

NameDescription
ColorOperation(int)Creates new color transform operation.

Parameters:

NameTypeDescription
opintOperation type.

Returns: ColorOperation


ColorOperation

NameDescription
ColorOperation(int, float)Creates new color transform operation.

Parameters:

NameTypeDescription
opintOperation type.
parameterfloatOperation parameter.

Returns: ColorOperation


equals

NameDescription
equals (Object)Determines whether the two ColorOperation instances are equal.

Parameters:

NameTypeDescription
objObjectThe ColorOperation to compare with the current ColorOperation.

Returns: boolean


getOperationType

NameDescription
getOperationType ()Returns or sets the type of an operation. Read-only ColorTransformOperation.

Returns: int


getParameter

NameDescription
getParameter ()Returns a parameter of an operation. Read-only float.

Returns: float


hashCode

NameDescription
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