我无法在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?)
答案 0 :(得分:1)
GetPixel
函数是类System.Drawing.Bitmap
的成员。而您正在使用System.Media.WriteableBitmap
。资料来源:MSDN - Bitmap.GetPixels和WriteableBitmap。