如何使用 Gdi+ 从相机保存图像

How to save images from camera using Gdi+

我想知道如何直接从摄像头读取流,write/save 计算机也一样。我正在使用 Visual studio 2012 和外置摄像头。

有什么建议吗?

考虑使用 Windows Image Acquisition (WIA)

Windows Image Acquisition (WIA) is the still image acquisition platform in the Windows family of operating systems starting with Windows Millennium Edition (Windows Me) and Windows XP.

The WIA platform enables imaging/graphics applications to interact with imaging hardware and standardizes the interaction between different applications and scanners. This allows those different applications to talk to and interact with those different scanners without requiring the application writers and scanner manufactures to customize their application or drivers for each application-device combination.

这是代码项目中的示例: