private void SaveOpth(String OK, String error)
{
if (selectPhth != null)
{
string path = selectPhth + "C#视觉//连接//图片数据文件//" + DateTime.Now.Year.ToString() + "//" + DateTime.Now.Month.ToString() + "//" + DateTime.Now.Day.ToString() + "//" + "图片//" + OK + "//";
if (Directory.Exists(path) == false)
{
Directory.CreateDirectory(path);
}
Image ima = cogRecordDisplay1.CreateContentBitmap(CogDisplayContentBitmapConstants.Display, null, 2);
ima.Save(path + DateTime.Now.ToString("HH:mm:ss:fff") + error + ".jpg");
}
else
{
MessageBox.Show("选择地址");
}
}
07-08
3303
04-02
4123
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交