Android Bitmap save without transparent area
问题 I want to save bitmap without transparent area. Bitmap has large transparent pixel. So i want to remove that How can i do this? I cant add picture so explain with symbols. I dont want to crop function. I hope use filter ┌────────────────────────┐ │ transparent area │ ┌────────┐ │ crop this └────────┘ └────────────────────────┘ 回答1: To find the non-transparent area of your bitmap, iterate across the bitmap in x and y and find the min and max of the non-transparent region. Then crop the bitmap