C# using System.Windows.Media.Imaging;该引用哪个dll

在网上看到BitmapSource和WriteableBitmap一些类听说是用 using System.Windows.Media.Imaging;可是我发现VS中没有什么System.Windows.Media.Imaging之类的框架,这就苦逼了,在网上也找不到,无意间发现原来引用不叫System.Windows.Media.Imaging,而是

PresentationCore

只需要在引用-->程序集-->框架-->PresentationCore找到这个就行了,另外我发现using System.Windows.Media不仅仅是在PresentationCore中有,而且WindowsBase也有引用方式

引用-->程序集-->框架-->WindowsBase

以后大家就不要再走弯路了,这个引用比较邪门,居然using System.Windows.Media.Imaging要引用PresentationCore真是不可思议!
---------------------
作者:fl1623863129 
来源:CSDN 
原文:https://blog.csdn.net/FL1623863129/article/details/78144049
版权声明:本文为博主原创文章,转载请附上博文链接!

作者不是我

posted @ 2019-07-01 10:02  sunshuaize  阅读(4152)  评论(0编辑  收藏  举报