WPF Bitmap转Imagesource

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

替换bmp

原文地址:https://www.cnblogs.com/ZXdeveloper/p/3780070.html