我已经有了一些C#代码,它能够获取输入位图图像的各个像素并对其进行操作,但它使用了Windows RT中不支持的System.Drawing
命名空间。相反,Windows.UI.Xaml.Media.Imaging
似乎用于Windows通用文件,它似乎无法在操作时锁定位图。人们是否知道可以用于来自mediaCapture
元素的数据流的替代方案?
答案 0 :(得分:0)
You can't do it directly on an ImageSource
, but you can create a WriteableBitmap
from the image and read from its PixelBuffer
property to access the raw pixel data.