I have a bitmap and I just want to show central circle area. How to hide the corner area? Actually, it would be great if I could make any area transparent (e.g. make it a ring)?
Asked
Active
Viewed 1,492 times
1 Answers
0
Convert the bitmap to a transparent PNG - you can use the free Gimp application. Load your picture in Gimp, select the central circle area, copy, then paste as new image. Should automatically make the area around it transparent. Then just save as a PNG file and use that in your Android app.
UPDATE
Here's an answer I found for defining a color to be transparent: Android bitmap mask color, remove color
-
Thanks for your answer. It works and I'm accepting it. However, it would be nice if someone could tell me how to do using android API. – newman Oct 20 '11 at 00:32
-
Added a link to another method. – Matt H Oct 20 '11 at 03:00