其他分享
首页 > 其他分享> > WPF Bitmap转Imagesource

WPF Bitmap转Imagesource

作者:互联网

原文:WPF Bitmap转Imagesource

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

替换bmp

标签:IntPtr,Interop,Bitmap,bmp,WPF,Imagesource
来源: https://www.cnblogs.com/lonelyxmas/p/10789529.html