Smobiler实现扫描条码和拍照功能(开发日志八)
Posted RabbitVi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Smobiler实现扫描条码和拍照功能(开发日志八)相关的知识,希望对你有一定的参考价值。
一、调用摄像头进行扫描
详细步骤:
1, 添加TextBox控件;添加BarcodeButton控件↓

2, 选择BarcodeButton为对象,在其属性→事件中,双击BarcodeScanned右边空白格,会自动跳转到代码编辑页↓


3, 写代码↓

代码中的↓:
textBox1=

e=当前数据
二、调用摄像头进行拍照,并显示相册

详细步骤:
1, 添加CameraButton控件↓

2, 选中CameraButton控件为对象→事件→ImageCaptured双击,进入代码编辑页面↓


3, 写代码↓



4, 添加Image控件↓

属性:

5, 写代码↓

以上是关于Smobiler实现扫描条码和拍照功能(开发日志八)的主要内容,如果未能解决你的问题,请参考以下文章
Smobiler实现列表展示—GridView(开发日志十二)
.Net语言 APP开发平台——Smobiler学习日志:在手机应用开发中如何快速实现应用间的分享功能
.Net语言 APP开发平台——Smobiler学习日志:如何在手机上实现表单设计