var imgsource = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(bmp.GetHbitmap(),IntPtr.Zero,Int32Rect.Empty,BitmapSizeOptions.FromEmptyOptions());
替换bmp
原文地址:https://www.cnblogs.com/lonelyxmas/p/10789529.html
时间: 2024-11-06 19:21:15
var imgsource = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(bmp.GetHbitmap(),IntPtr.Zero,Int32Rect.Empty,BitmapSizeOptions.FromEmptyOptions());
替换bmp
原文地址:https://www.cnblogs.com/lonelyxmas/p/10789529.html