Hello Android Developers,

Is it possible to realize the following picture in Android with canvas?

[image: zg4uw.png]

I want to have a hole and not only a Circle over the red layer which is 
yellow colored. I tried this (and failed) with the following Code in my 
onDraw()-Method:

canvas.drawBitmap(yellow, 0, 0, paint);
canvas.drawBitmap(red, 0, 200, paint);Paint p = new Paint();
p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));
canvas.drawCircle(300, 300, radius, p);

But when I use this code, it makes a hole through both bitmap's. At the 
end, this App should be a Maze with a ball, holes and other stuff. When the 
ball would fall into a hole it should appear under the red-Bitmap. Is it 
possible to realize this?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to