Loading

WPF Bitmap转Imagesource

var imgsource = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(bmp.GetHbitmap(),IntPtr.Zero,Int32Rect.Empty,BitmapSizeOptions.FromEmptyOptions());

替换bmp

posted @ 2014-06-10 15:27  眾尋  阅读(457)  评论(0编辑  收藏  举报