java.lang.IllegalStateException: Immutable bitmap passed to Canvas constructor

解决,转为mutable bitmap即可。

bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true);

 

 

 

参考:https://blog.csdn.net/niuba123456/article/details/113754591

posted @ 2022-07-22 17:36  jiduoduo  阅读(288)  评论(0编辑  收藏  举报