【发布时间】:2015-07-02 11:32:55
【问题描述】:
我想从Image 控件中显示的图像中获取 R、G 和 B 的平均值。此图像的来源是使用this dll 从网络摄像头捕获的帧。
尽管我发现了一些应该能够做到这一点的函数,但它们要么是 for C# using pointers and unsafe code 要么是 for Windows Forms,我无法让它们与 Image 控件一起使用。
我应该如何进行计算,或者至少将 Image.Source 转换为 Bitmap 以便使用 WinForms 链接中的函数?
【问题讨论】:
标签: wpf vb.net visual-studio-2013