This commit is contained in:
jeongyoonjeong
2021-08-02 17:11:27 +09:00
parent 2311774c42
commit 4486a127b7
12 changed files with 605 additions and 906 deletions

View File

@@ -396,23 +396,23 @@ namespace FCM0000
return;
}
FCOMMON.fWebCamera f = new FCOMMON.fWebCamera(FCOMMON.info.camIndex);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
System.Drawing.Bitmap bmp = f.bmp.Clone() as System.Drawing.Bitmap;
Application.DoEvents();
//FCOMMON.fWebCamera f = new FCOMMON.fWebCamera(FCOMMON.info.camIndex);
//if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
//{
// System.Drawing.Bitmap bmp = f.bmp.Clone() as System.Drawing.Bitmap;
// Application.DoEvents();
if (!FCOMMON.DBM.setImageData(bmp, "Items", "image", dr.idx))
{
FCOMMON.Util.MsgE("등록 실패");
}
else
{
var oimag = this.pictureBox1.Image;
this.pictureBox1.Image = (Image)bmp;
if (oimag != null) oimag.Dispose();
}
}
// if (!FCOMMON.DBM.setImageData(bmp, "Items", "image", dr.idx))
// {
// FCOMMON.Util.MsgE("등록 실패");
// }
// else
// {
// var oimag = this.pictureBox1.Image;
// this.pictureBox1.Image = (Image)bmp;
// if (oimag != null) oimag.Dispose();
// }
//}
}
private void tbSearch_KeyDown(object sender, KeyEventArgs e)