public static void TestBmp(Bitmap no_glue_bmp, Bitmap glue_bmp, HWindow hWindow, bool save) { Marking.GlueResult = action(no_glue_bmp, glue_bmp, hWindow); if (save) { SaveImage.Save(hWindow); } }
public static void TestBmp(Bitmap bmp, HWindow hWindow, Point3D <double> Needlepos, Point3D <double> CamPos, bool save) { double[] Res = action(bmp, hWindow, Needlepos, CamPos); Position.Instance.CCD2NeedleOffset.X = Res[0]; Position.Instance.CCD2NeedleOffset.Y = Res[1]; if (save) { SaveImage.Save(hWindow); } }
public static void TestBmp(Bitmap bmp, HWindow hWindow, bool save) { try { LastCenterLocateBMP = bmp; //double[] Res = action(bmp, hWindow); CenterMatch(bmp, hWindow); //Position.Instance.PCB2CCDOffset.X = Res[0]; //Position.Instance.PCB2CCDOffset.Y = Res[1]; if (save) { SaveImage.Save(hWindow); } } catch { } }