using System;using System.Linq;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using Microsoft.WindowsMobile.Forms;namespace CameraNow{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void BtnCamera_Click(object sender, EventArgs e) { using (CameraCaptureDialog dlg = new CameraCaptureDialog()) { if (dlg.ShowDialog() == DialogResult.OK) { //MessageBox.Show("图片路径:" dlg.FileName); pictureBox1.Image = new Bitmap(dlg.FileName); } } } }}
下载声明:
本站资源均有第三方用户自行上传分享推荐,非本站自制,仅供玩家做交流学习之用!切勿用于商业用途!游戏作品版权归原作者享有,如有版权问题,请附带版权证明至邮件,本平台将应您的要求删除。
举报邮箱 :znzpzy@163.com
评论