dxCameraControl控件(拍照)
2024-08-27 01:50:33
拍照演示
主要属性设置
Active:True
DeviceIndex:设备号,默认为0
其他方法
procedure Capture; //捕获
procedure Pause; //暂停
procedure Play; //播放
procedure Stop; //停止
property State: TdxCameraControlState read FState; //设备状态
设计界面
代码
//拍照并在cxImage中显示
procedure TForm1.Button1Click(Sender: TObject);
begin
dxCameraControl1.Capture;
cxImage1.Picture.Assign(dxCameraControl1.CapturedBitmap);
end;
//保存图片
procedure TForm1.Button3Click(Sender: TObject);
begin
if SavePictureDialog1.Execute then
begin
cxImage1.Picture.SaveToFile(SavePictureDialog1.FileName);
end;
end;
拍照演示
最新文章
- Spring学习系列(三) 通过Java代码装配Bean
- LeetCode - Minimum Depth of Binary Tree
- PHP curl https访问问题
- iOS 下ARC的内存管理机制
- Session fixation--wiki
- 【Struts2+Spring3+Hibernate3】SSH框架整合实现CRUD_1.3
- C程序设计语言练习题1-23
- Codeforces 138D World of Darkraft
- Exponentiation
- Shell变量:Shell变量的定义、删除变量、只读变量、变量类型
- Nginx+tomcat配置集群负载均衡
- (一〇八)iPad开发之横竖屏适配
- uva11754 中国剩余定理+暴力搜索
- PyCharm使用Anaconda新建的环境
- 嵌入式ROM核的调用
- Linux-Memcache和Redis常用命令
- Redis监控技巧总结
- VC++ GetSafeHwnd()和GetSafeHandle()
- Mybatis的输入映射和输出映射
- Clojure基础课程2-Clojure中的数据长啥样?
热门文章
- nohup 和 &;的含义
- [Object Tracking] Deep Boundary detection Tech
- iOS - DNS劫持
- docker 搭建ntp服务器
- 在 VS Code 和 Chrome 中调试
- solus 系统 - 编译安裝 ibus-rime 中文输入法(附:小鹤双拼双形配置文件)
- MySQL使用mysqldump备份及还原
- [No0000CA]什么是“普瑞马法则”?以及 如何利用“普瑞马法则”,三步克服惰性
- toggle显示与隐藏切换
- iOS10原生的语音转文字功能