Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Bitmap to (Graphics.)path in Android

I trying to Convert bitmap to a Path in Android something like this

        Bitmap alpha = bitmap.extractAlpha();
        Path path = BitmapToPath(alpha);

enter image description here

like image 903
mohandesR Avatar asked Jun 05 '26 09:06

mohandesR


1 Answers

Do you want to draw on canvas like that or do you want to extract the path? If you want to draw on canvas you can achieve that using porterduff mode

like image 197
Naveenchandan Avatar answered Jun 06 '26 22:06

Naveenchandan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!