Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/325.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在Windows Phone应用程序中使用GetPixel功能?_C#_Visual Studio 2013_Windows Phone 8.1 - Fatal编程技术网

C# 如何在Windows Phone应用程序中使用GetPixel功能?

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

我无法在我的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.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