WPF中Image.Source的问题
摘要:
using System.Windows.Interop;using System.Drawing;将System.Drawing.Image对象作为图源:Image1.Source = Imaging.CreateBitmapSourceFromHBitmap(((Bitmap)Image01).GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());将资源中的图形作为图源:Image3.Source = Imaging.CreateBitmapSourceFromHBitmap(Pr 阅读全文
posted @ 2011-05-26 22:08 sunliqiang 阅读(1010) 评论(0) 推荐(0)
浙公网安备 33010602011771号