简体   繁体   中英

Access HTC wm6.5 camera using .NET

Well i have a htc diamond 2 which run on wm6.5, I would like to access the built in camera to capture image. I am not building wm app, i want to build ac#(or any other .NET) winform app that run on windows 7 platform. Is that possible? I found some articles about directshow.net,wia,windowsmobile camera capture dialog etc.But i really have no idea on how to start it. So my question is:

  1. How do i establish a connection to my phone(i have to initiate a connection between my pc and phone's camera first right?),do i need to download any windows mobile sdk?
  2. To control the camera, do i need any driver installed?
  3. Do i use htc camera api/sdk(which i can't find) or windows mobile api/sdk to control the camera?

For HTC devices DirectShow cannot be used. The problem is that HTC provides only basic DirectShow API, and you will be able only use very small resolution from camera 320x240. HTC doen't provide any SDK. But I found very useful components for Windows Mobile Direct Show on this page. They are paid but quite good. I think it is worth to check. I'm using Player Control for DirectShow video playing. And there HCTCamera component (Some raw version I think still free) which I didn't check but you can:

HTCCamera Control

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM