Browse Source

修改100倍时ScanFieldSize实时获取

CXS 3 years ago
parent
commit
96a0ab0c6c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      OTSIncAReportApp/Control_Grids/ParticlesGridDevidePage.cs

+ 2 - 2
OTSIncAReportApp/Control_Grids/ParticlesGridDevidePage.cs

@@ -586,14 +586,14 @@ namespace OTSIncAReportGrids
                             string subt = particles.Rows[i]["SubParticles"].ToString();
                             string subt = particles.Rows[i]["SubParticles"].ToString();
                             if (subt != null && subt != "")
                             if (subt != null && subt != "")
                             {
                             {
-                                double ScanFieldSize = 1142;
-                                //double ScanFieldSize = Convert.ToDouble(((Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)result.ResultInfo["Sample"])["Members"])["SEMDataMsr"])["ScanFieldSize"]);
+                                double ScanFieldSize = Convert.ToDouble(((Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)result.ResultInfo["Sample"])["Members"])["SEMDataMsr"])["ScanFieldSize"]);
                                 string filePatht = result.FilePath + "\\FIELD_FILES\\";
                                 string filePatht = result.FilePath + "\\FIELD_FILES\\";
                                 string imagePatht = filePatht + "Field" + subt.Split(',')[0].Split(':')[0].ToString() + ".bmp";
                                 string imagePatht = filePatht + "Field" + subt.Split(',')[0].Split(':')[0].ToString() + ".bmp";
                                 //然后将取出的数据,转换成Bitmap对象
                                 //然后将取出的数据,转换成Bitmap对象
                                 Bitmap tempbit = fielddata.ReadImageFile(imagePatht);
                                 Bitmap tempbit = fielddata.ReadImageFile(imagePatht);
                                 int pixw = tempbit.Width;
                                 int pixw = tempbit.Width;
                                 double xs = pixw / ScanFieldSize;
                                 double xs = pixw / ScanFieldSize;
+
                                 particleM = particleM + "," + subt;
                                 particleM = particleM + "," + subt;
                                 Bitmap bmap = fielddata.GetBitmapForBig(subt, xs, result.FilePath);
                                 Bitmap bmap = fielddata.GetBitmapForBig(subt, xs, result.FilePath);
                                 if (bmap != null)
                                 if (bmap != null)