private void button10_Click(object sender, EventArgs e)
 {
     if (draw_falg)
     {
         button10.Enabled = false;
         this.pictureBox1.Focus();
         HDevWindowStack.SetActive(Hwin);
         Htemp_roi.Dispose();
         HOperatorSet.DrawCircle(Hwin, out Hrow, out Hcol, out Hradius);
         HOperatorSet.TupleInt(Hrow, out Hrow);
         HOperatorSet.TupleInt(Hcol, out Hcol);
         HOperatorSet.GenCircle(out Htemp_roi, Hrow, Hcol, Hradius);
         HOperatorSet.DispObj(Htemp_roi, Hwin);
     }
     if (Refresh_parm(FC_data))
     {
         if (FC_data.FindCircle(image_show))
         {
             show_pic_roi();
             FC_data.DrawRecord(Hwin);
         }
     }
     draw_falg        = false;
     draw_box.Enabled = true;
     button10.Enabled = true;
 }
 private void delete_roi_Click(object sender, EventArgs e)
 {
     Htemp_roi.Dispose();
     try
     {
         HOperatorSet.ClearWindow(Hwin);
         HOperatorSet.DispObj(image_show, Hwin);
     }
     catch
     {
     }
 }
 private void show_pic_roi()
 {
     try
     {
         HOperatorSet.DispObj(image_show, Hwin);
         Htemp_roi.Dispose();
         HOperatorSet.GenCircle(out Htemp_roi, Hrow, Hcol, Hradius);
         HOperatorSet.DispObj(Htemp_roi, Hwin);
     }
     catch (System.Exception ex)
     {
     }
 }
Beispiel #4
0
        private void button10_Click(object sender, EventArgs e)
        {
            if (draw_falg)
            {
                button10.Enabled = false;
                this.pictureBox1.Focus();
                HDevWindowStack.SetActive(Hwin);
                Htemp_roi.Dispose();
                HOperatorSet.DrawCircle(Hwin, out Hrow, out Hcol, out Hradius);
                HOperatorSet.TupleInt(Hrow, out Hrow);
                HOperatorSet.TupleInt(Hcol, out Hcol);
                HOperatorSet.GenCircle(out Htemp_roi, Hrow, Hcol, Hradius);

                display_draw(Htemp_roi, ref Hdraw_roi);
                create_display_model();
            }
            draw_falg        = false;
            draw_box.Enabled = true;
            button10.Enabled = true;
        }
Beispiel #5
0
        private void button9_Click(object sender, EventArgs e)
        {
            if (draw_falg)
            {
                button9.Enabled = false;
                this.pictureBox1.Focus();
                HDevWindowStack.SetActive(Hwin);
                Htemp_roi.Dispose();
                HOperatorSet.DrawRectangle1(Hwin, out Hrow1, out Hcol1, out Hrow2, out Hcol2);
                HOperatorSet.TupleInt(Hrow1, out Hrow1);
                HOperatorSet.TupleInt(Hcol1, out Hcol1);
                HOperatorSet.TupleInt(Hrow2, out Hrow2);
                HOperatorSet.TupleInt(Hcol2, out Hcol2);
                HOperatorSet.GenRectangle1(out Htemp_roi, Hrow1, Hcol1, Hrow2, Hcol2);

                display_draw(Htemp_roi, ref Hdraw_roi);
                create_display_model();
            }
            draw_falg        = false;
            draw_box.Enabled = true;
            button9.Enabled  = true;
        }