wpf读取网络图片:
2021-01-19 05:11
标签:== str org odm 读取 发布 alt one play
项目发布之后,图片保存到服务器(成为网络图片): wpf读取网络图片: private void ViewImage(string fileUri) wpf读取网络图片: 标签:== str org odm 读取 发布 alt one play 原文地址:https://www.cnblogs.com/lonelyxmas/p/12164922.html
读取方法如下面所示:
{
BitmapImage bitImage = new BitmapImage();
bitImage.BeginInit();
bitImage.UriSource = new Uri(fileUri, UriKind.Absolute);
bitImage.DecodePixelWidth = 300;
bitImage.EndInit();
imgView.Source = bitImage;
}