摘要: var source = new BitmapImage(new Uri("/HeatMap;component/Palette/1.png", UriKind.Relative));如上创建BitmapImage,发现source的PixelHeight和 PixelHeight均为0,这该如何是好呢?直接创建不行,间接呢?蓦然发现BitmapImage有个SetSource()方法,他只需要流参数,那就简单了,根据先通过uri创建个流System.Windows.Resources.StreamResourceInfo resourceInfo = Applicatio 阅读全文
posted @ 2013-06-27 14:43 living 阅读(298) 评论(0) 推荐(0) 编辑