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
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
|
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this 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
|