摘要: wpf中不能直接给路径真的很郁闷!using System.Windows.Interop;using System.Drawing;将System.Drawing.Image对象作为图源:wpfImg1.Source = Imaging.CreateBitmapSourceFromHBitmap(((Bitmap)Image01).GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());将资源中的图形作为图源:wpfImg2.Source = Imaging.CreateBitmapS 阅读全文
posted @ 2011-09-22 08:53 Mark_ybh 阅读(706) 评论(0) 推荐(0) 编辑