2011年5月13日

摘要: 很多时候,需要编码动态设置显示图片,方法上不是那么直接,从网上找到合适的方法,这里做一下记录。需要引用的命名空间System.Windows.Media.Imageing;代码:Uri uri = new Uri("image/aaa.png",UriKind.RelativeOrAbsolute);ImageSource imgSource = new BitmapImage(uri);img.Source = imgSource;搞定。 阅读全文
posted @ 2011-05-13 10:32 lzhm 阅读(279) 评论(0) 推荐(0) 编辑

导航