WPF Bitmap转BitmapSource,Image
//引用:
using System.Windows.Interop; //Imaging
using System.Drawing; //Bitmap
public static Imaging.BitmapSource ConvertToBitmapSource(Bitmap btmap)
{
return Imaging.CreateBitmapSourceFromHBitmap(btmap.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());
}