首页 新闻 会员 周边

silverlight如何获取远程图片的尺寸

0
[已关闭问题]

Image img = new Image();
                img.Source = new BitmapImage(new Uri("地址"));
通过这种方式载入的

拖鞋王子的主页 拖鞋王子 | 初学一级 | 园豆:37
提问于:2010-05-07 11:04
< >
分享
其他回答(1)
0

img.Width
img.Height

Astar | 园豆:40805 (高人七级) | 2010-05-07 11:31
不对的
支持(0) 反对(0) 拖鞋王子 | 园豆:37 (初学一级) | 2010-05-07 13:16
0

图片加载完后得到的原始尺寸

    double height = img.ActualHeight;
    double width = img.ActualWidth;
             
木子muzi | 园豆:210 (菜鸟二级) | 2010-05-19 19:14
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册