摘要: 参考: http://stackoverflow.com/questions/35804375/how-do-i-save-a-bitmapimage-from-memory-into-a-file-in-wpf-c /// <summary> /// 把内存里的BitmapImage数据保存到硬盘 阅读全文
posted @ 2017-03-29 16:33 霍莉雪特 阅读(3111) 评论(0) 推荐(0)
摘要: 问题:工作中涉及到图像的数据类型转换,经常转着转着发现,到了哪一步图像的透明度丢失了! 例如,Bitmap转BitmapImage的经典代码如下: public static BitmapImage BitmapToBitmapImage(System.Drawing.Bitmap bitmap) 阅读全文
posted @ 2017-03-29 14:59 霍莉雪特 阅读(916) 评论(0) 推荐(0)