对于磁盘文件来说很容易,但是对于内存中的位图则更难。System.Drawing.Bitmap bmp;Image image;...MemoryStream ms = new MemoryStream();bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Png);ms.Position = 0;BitmapImage bi = new BitmapImage();bi.BeginInit();bi.StreamSource = ms;bi.EndInit();image.Source = bi;