2022年1月14日

WPF C# 以非独占式读取本地图片

摘要: 思路是先把图片读取到内存中,再转换成BitmapImage 代码: string imgPath = "X:\\xxxxx.jpg"; var bytes = File.ReadAllBytes(imgPath); MemoryStream ms = new MemoryStream(bytes); 阅读全文

posted @ 2022-01-14 09:43 lopengye 阅读(444) 评论(0) 推荐(1)

导航