急!——请教,有关PicClp32.ocx控件的使用问题,在线等...
我想用摄像头采集照片,以.bmp的格式存入计算机。
有两个表单:一个放AvCap.ocx(AVCap.AVCapture)进行视频捕捉,一个放PicClp32.ocx(PicClip.PictureClip)
图片命名使用数据库表中的“bh”字段。
代码如下:
thisformset.form1.AvCap控件名.takepicturetofile('photo\bmp\'+bh+'.bmp')
thisform.PicClp32控件名.picture=loadpicture('photo\bmp\'+bh+'.bmp')
savepicture(thisform.PicClp32控件名.clip,'photo\bmp\'+bh+'.bmp')
运行出错信息:OLE IDispatch exception code 0 from PictureClip:Clip region boundary error..