I'm having an image view. I have to create a mask with white color and the non masked portion should be black color and save it as an bitmap or jpg.
Masked Image (Needs to create like this)
From the above original image I have to mask the dog and create it as a bitmap or png
CodePudding user response:
You need to make a custom view which support draw line, make custom view background be transparent. Then put that view on top the ImageView in your layout. And after drawed the mask, just save the drawing bitmap create from custom view.