Commit b97a3939 LN

加载模板错误时自动处理

1 个父辈 e66fc94e
正在显示 1 个修改的文件 包含 9 行增加2 行删除
......@@ -228,11 +228,18 @@ namespace AOI
}
else
{
try
{
var BaseImg = CropBitmap(orgimage, markroi.RoiPath.GetBounds());
return (Bitmap)BaseImg;
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
return Eyemlib.DeepClone(orgimage);
}
}
}
[HandleProcessCorruptedStateExceptions]
public Bitmap ProcessTestImage(Bitmap targetimage, string name)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!