在智能手机上内置摄像头捕捉事件 - 紧急 [英] Inbuilt camera capture event on the smart phone- Urgent

查看:94
本文介绍了在智能手机上内置摄像头捕捉事件 - 紧急的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经申请了cameracapturing。现在由于公司的需求,我需要开发这样的东西:如果用户打开设备的内置摄像头并捕获图像,我可以跟踪捕获事件并显示菜单:

I already made the application for the cameracapturing. Now due to the demand of the company, i need to develop such a thing that, if the user opens the built in camera of the device, and captures the image, i can track that capture event  and display the menu:

"上传文件"

"发送给朋友"这些是我申请的选项。我知道怎么办atall.Please急需帮助。我怎样才能获得内置相机保存文件的格式和文件名,只要它点击了

"Send to friend" these r the options of my application. I dnt knw how to do atall.Please help needed urgently.Also how can i get the format and the file name by which the built in camera saves the file,  as soon as it clicks

Thanx提前。

Thanx in advance.



推荐答案

自相机以来app将图像存储在预定义的位置(如果您有存储卡,则为2),您可以使用FileSystemWatcher(OpenNETCF SDF)类来监视这些位置。存在一个小问题,即能够判断图像是由相机产生的,还是仅从其他地方复制到设备中。您可以通过读取图像标题属性(OpenNETCF.Drawing.Imaging)并确保刚刚创建图像来解决它。
Since the camera app stores the images in the predefined location (or 2 if you have a storage card), you can use FileSystemWatcher (OpenNETCF SDF) class to monitor these locations. There is a minor issue of being able to tell if the image has been produced by the camera, or just copied to the device from elsewhere. You can resolve it by reading the image header properties (OpenNETCF.Drawing.Imaging) and making sure image has been created just now.


这篇关于在智能手机上内置摄像头捕捉事件 - 紧急的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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