BitmapSource in line to see and hear some of the classes WriteableBitmap is using System.Windows.Media.Imaging; but I found what framework System.Windows.Media.Imaging like VS does not, which is hard to force, but also on the Internet Can not find, inadvertently found that the reference is not called System.Windows.Media.Imaging, but
PresentationCore
Only you need to quote -> Programs -> Frame -> PresentationCore find this on the line, and I have found that using System.Windows.Media in PresentationCore not just in, but also reference WindowsBase
References -> assembly -> frame -> WindowsBase
That we would not have detours, this reference compare scary, actually using System.Windows.Media.Imaging To quote PresentationCore incredible!
---------------------
author: fl1623863129
source: CSDN
original: https: //blog.csdn.net/FL1623863129/article/details/78144049
copyright: This article is a blogger original article, reproduced, please attach Bowen link!