110,539
社区成员
发帖
与我相关
我的任务
分享
using (System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(image))
{
BitmapSource bitmapSource = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(
bitmap.GetHbitmap(),
IntPtr.Zero,
Int32Rect.Empty,
BitmapSizeOptions.FromEmptyOptions());
img.Source = bitmapSource;
}