wpf : Bitmap 的图片处理问题 如何将流中的图片加载到listView中

如题所述

            System.IO.MemoryStream ms = new System.IO.MemoryStream();

            Image myImage3 = new Image();
            BitmapImage bi3 = new BitmapImage();
            bi3.BeginInit();

            bi3.StreamSource = ms;  //将流对象给StreamSource
             
            bi3.EndInit();
            myImage3.Stretch = Stretch.Fill;
            myImage3.Source = bi3;
温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-03-08
考虑用Converter转换一下,如果方便就远程看吧。
相似回答