Monday, April 2, 2012

[android-developers] How to set the bitmap to Transparent

hi,

I used following method to create a canvas.

temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_4444);
Canvas thisCanvas = new Canvas(temp);

I don't know why the canvas has a black background. How to create a
Transparent background for use?

Thanks a lot!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment