public class

AvoidXfermode

extends Xfermode
java.lang.Object
   ↳ android.graphics.Xfermode
     ↳ android.graphics.AvoidXfermode

Class Overview

AvoidXfermode xfermode will draw the src everywhere except on top of the opColor or, depending on the Mode, draw only on top of the opColor.

Summary

Nested Classes
public class AvoidXfermode.Mode  
Public Constructors
AvoidXfermode(int opColor, int tolerance, AvoidXfermode.Mode mode)
This xfermode will draw the src everywhere except on top of the opColor or, depending on the Mode, draw only on top of the opColor.
[Expand]
Inherited Methods
From class android.graphics.Xfermode
From class java.lang.Object

Public Constructors

public AvoidXfermode (int opColor, int tolerance, AvoidXfermode.Mode mode)

This xfermode will draw the src everywhere except on top of the opColor or, depending on the Mode, draw only on top of the opColor.

Parameters
opColor The color to avoid (or to target depending on Mode). Note that the alpha in opColor is ignored.
tolerance How closely we compare a pixel to the opColor. 0 - only operate if exact match 255 - maximum gradation (blending) based on how similar the pixel is to our opColor (max tolerance)
mode If we should avoid or target the opColor