MagicWandSettings.ColorComparison
public static interface MagicWandSettings.ColorComparison
Delegate for Color comparison with a defined threshold.
Methods
Method | Description |
---|---|
invoke(Color p1, Color p2, int threshold) | Delegate for Color comparison with a defined threshold. |
invoke(Color p1, Color p2, int threshold)
public abstract boolean invoke(Color p1, Color p2, int threshold)
Delegate for Color comparison with a defined threshold.
Parameters:
Parameter | Type | Description |
---|---|---|
p1 | Color | The first color to compare. |
p2 | Color | The second color to compare. |
threshold | int | The allowed threshold for color difference. |
Returns: boolean - true if color comparison satisfies the threshold; otherwise, false.