Home | History | Annotate | Download | only in graphics

Lines Matching refs:tolerance

39      * There are two modes, and each mode interprets a tolerance value.
43 * Tolerance near 0: avoid any colors even remotely similar to the op-color
44 * Tolerance near 255: avoid only colors nearly identical to the op-color
48 * Tolerance near 0: draw only on colors that are nearly identical to the op-color
49 * Tolerance near 255: draw on any colors even remotely similar to the op-color
51 public AvoidXfermode(int opColor, int tolerance, Mode mode) {
52 if (tolerance < 0 || tolerance > 255) {
53 throw new IllegalArgumentException("tolerance must be 0..255");
55 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt);
58 private static native int nativeCreate(int opColor, int tolerance,