I am a new one in UI coding. So may be my way is not the best..

Panit mPaint = new Paint();
mPaint.setXfermode(new PorterDuffXfermode(Mode.DST_IN));
mPaint.setAlpha(XX);
notice that Mode.DST_IN is important(Better to see it's api-doc.)
Use this paint to draw a "ALPHA_8" bitmap on your org bitmap ,then you can
get a Bitmap which have special alpha.
So you can get two special alpha bitmap ,then draw them with Mode.DST_IN.
I think you will get you want.
But there must be a nice way, to do a calculation on the alpha area of bitmap.
hope it can help you.

On Tue, 16 Mar 2010 13:20:01 +0800, BobG <bobgard...@aol.com> wrote:

How about set the Alpha channel in each one to 50% so they are both
half see through?


---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. ---------------------------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to