会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
茜茜爸爸的技术博客
2011年5月13日
编码设置 Image.Source
摘要: 很多时候,需要编码动态设置显示图片,方法上不是那么直接,从网上找到合适的方法,这里做一下记录。需要引用的命名空间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)
编辑
导航
博客园
首页
新随笔
联系
订阅
管理
公告