我试图在Android中将位图转换为路径像这样的东西
Bitmap alpha = bitmap.extractAlpha(); Path path = BitmapToPath(alpha);
您想在画布上那样绘制,还是要提取路径?如果要在画布上绘画,可以使用Porterduff模式实现]