コード例 #1
0
 public Bitmap Run()
 {
     sc = new ScanPoints(filename, rastersize, offset, obj);
     sc.startprocess(filename);
     imagebitmap = sc.SurfaceMap;
     return(imagebitmap);
 }
コード例 #2
0
ファイル: Surface.cs プロジェクト: kibedy/OrthomachineForm
 //public Bitmap Run(BackgroundWorker worker, DoWorkEventArgs e)
 public Bitmap Run()
 {
     //sc = new ScanPoints(filename, rastersize, offset, obj);
     //sc = new ScanPoints(filename, rastersize, offset, obj, worker, e);
     sc    = new ScanPoints(filename, rastersize, offset, obj);
     image = sc.SurfaceMap;
     return(image);
 }
コード例 #3
0
 public Surface(string filename, float offset, float rastersize, Form1 obj)
 {
     this.filename   = filename;
     this.offset     = offset;
     this.rastersize = rastersize;
     this.obj        = obj;
     sc = new ScanPoints(filename, rastersize, offset, obj);
 }
コード例 #4
0
        public Bitmap LoadSurface(string SavePath, Form1 form1)
        {
            StreamReader sr = new StreamReader(SavePath + "\\" + "surface.xyz");
            string       s  = sr.ReadLine();

            string[] ss = s.Split(' ');
            this.sc          = new ScanPoints("surface", float.Parse(ss[2]), float.Parse(ss[3]), obj);
            this.sc.X0       = double.Parse(ss[0]);
            this.sc.Y0       = double.Parse(ss[1]);
            form1.rastersize = float.Parse(ss[2]);
            form1.offset     = float.Parse(ss[3]);
            sr.Close();
            sc.image = new Image <Gray, ushort>(SavePath + "\\surface.png");
            return(sc.image.ToBitmap());
        }