如何获得相机的快门事件? [英] how can I get the Shutter event for my Camera?

查看:95
本文介绍了如何获得相机的快门事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我从使用WIA传输D90图像中读取了您的炮弹 [


I read your artile from Transferring D90 images with WIA[^], and my Camera is D90,too. with your program, i can scan image from camera and transfer to my PC.

The event you given in the program, i change a little as the following,i want the WIA.EventID.wiaEventItemCreated,

public void devManager_OnEvent( string eventID, string deviceID, string itemID )
       {
           switch (eventID)
           {
               case WIA.EventID.wiaEventDeviceConnected:
                    {
                        //OK
                        //when open the camera
                    }
                    break;
                case WIA.EventID.wiaEventDeviceDisconnected:
                    {
                        //OK
                        //when close the camera
                    }
                    break;
                case WIA.EventID.wiaEventItemCreated:
                    {
                        //how can i get it ??
                    }
                    break;
               case WIA.EventID.wiaEventItemDeleted:
                   {
                   }
                   break;
               case WIA.EventID.wiaEventScanEmailImage:
                   {
                   }
                   break;
               case WIA.EventID.wiaEventScanFaxImage:
                   {
                   }
                   break;
               default :
                   break;
           }


       }


还是有一些快门事件,例如按下快门时触发事件?

我的英语不太好,希望您能理解我,我的电子邮件是:[已删除电子邮件],如果可以解决,可以向我发送电子邮件,非常感谢!


or,there are some shutter event, for example when pressing the shutter, triggering the event??

my english is not well,i hope you can understand me,my email is :[removed email],you can send email to me if you can solve it,thank you a lot!

推荐答案

不要将其发布在快速解答"下-如果您从某篇文章中获取了代码,则该文章底部会有一个新消息"按钮,该按钮会导致将电子邮件发送到作者.然后会通知他们您希望与他们交谈.
将其发布到此处依赖于他们的下落"并意识到它是针对他们的.
Don''t post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.


这篇关于如何获得相机的快门事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆