Build 1.0_r1(from source)

android.graphics
Class AvoidXfermode

java.lang.Object
  extended by android.graphics.Xfermode
      extended by android.graphics.AvoidXfermode

public class AvoidXfermode
extends Xfermode

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.


Nested Class Summary
static class AvoidXfermode.Mode
           
 
Field Summary
 
Fields inherited from class android.graphics.Xfermode
native_instance
 
Constructor Summary
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.
 
Method Summary
 
Methods inherited from class android.graphics.Xfermode
finalize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvoidXfermode

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature