Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在没有重新分配的情况下System.Windows.Media.Imaging.Bitmapsource从 a创建一个System.Drawing.Bitmap?不幸的是,其他帖子中描述的所有方法都包含一个副本,pixel data这并不总是需要并且非常昂贵......
System.Windows.Media.Imaging.Bitmapsource
System.Drawing.Bitmap
pixel data
我找到了这个解决方案,它对我来说非常有效!
WpfImage.Source = new SharedBitmapSource(DrawingBitmap);