C# 如何在Windows Phone应用程序中使用GetPixel功能?
我无法在我的Windows Phone应用程序中使用C# 如何在Windows Phone应用程序中使用GetPixel功能?,c#,visual-studio-2013,windows-phone-8.1,C#,Visual Studio 2013,Windows Phone 8.1,我无法在我的Windows Phone应用程序中使用GetPixel功能。这给了我一个错误: 'System.Windows.Media.Imaging.WriteableBitmap' does not contain a definition for 'GetPixel' and no extension method 'GetPixel' accepting a first argument of type 'System.Windows.Media.Imaging.WriteableBi
GetPixel
功能。这给了我一个错误:
'System.Windows.Media.Imaging.WriteableBitmap' does not
contain a definition for 'GetPixel' and no extension method 'GetPixel'
accepting a first argument of type
'System.Windows.Media.Imaging.WriteableBitmap' could be found (are you
missing a using directive or an assembly reference?)
GetPixel
函数是类System.Drawing.Bitmap
的成员。而您使用的是System.Media.WriteableBitmap
。来源:MSDN-和。步骤1:阅读并理解此内容-步骤2:编辑此问题发布您的代码。我们不是魔术师,也看不懂你的心思。看看nuget软件包WriteablebitmapEx
,我很确定它有一个WritePixel