用名称而不是数字在图库中插入图像

问题描述

我使用了import seaborn as sns from matplotlib.patches import Rectangle df = pd.DataFrame([[3,0],[2,3,[1,2,[3,1,3],2],[0,1],0]],columns = ["reg1","reg2","reg3"]) mask = df == 3 fig,ax = plt.subplots() ax = sns.heatmap(df,ax=ax) for row in range(df.shape[0]): for col in range(df.shape[1]): if mask.iloc[row,col]: ax.add_patch(Rectangle((col,row),fill=False,edgecolor='blue',lw=3)) plt.show() ,但是在图库中我的位图的名称不是Android.Provider.MediaStore.Images.Media.Insertimage(this.ContentResolver,bitmap,"MyTitleImage.png",null);,而是一个数字(MyTitleImage.png)。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)