[android-developers] Re: DrawableBitmap, Canvas and OR

2010-04-15 Thread Bob Kerns
Well, no, it just happens that in that case OR gives the same result as a more useful mode, like PLUS or XOR. Use PixelXorXfermode. E.g. public class XorDemo extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated

[android-developers] Re: DrawableBitmap, Canvas and OR

2010-04-13 Thread Kaj Bjurman
It does also make sense for some color images. Take an image that only has information in the red channel, and OR it with an image that only has information in e.g. the blue channel and you'll see what I want to do. On 12 Apr, 21:38, Bob Kerns r...@acm.org wrote: And just what useful visual

[android-developers] Re: DrawableBitmap, Canvas and OR

2010-04-13 Thread skink
Kaj Bjurman wrote: It does also make sense for some color images. Take an image that only has information in the red channel, and OR it with an image that only has information in e.g. the blue channel and you'll see what I want to do. i'm not sure but maybe its what you are looking for:

[android-developers] Re: DrawableBitmap, Canvas and OR

2010-04-12 Thread Bob Kerns
And just what useful visual result do you want to happen as a result? OR makes sense for black and white, not for color. Or are you using the graphics processor for something other than actual graphics? On Apr 12, 3:30 am, Kaj Bjurman kaj.bjur...@gmail.com wrote: Hi, Is it in some way