Esempio n. 1
0
 public void Update(string ImgPath, string MaskPath)
 {
     mask = null;
     BoxImg.Load(ImgPath);
     BoxMask.Load(MaskPath);
     this.trackBar_Scroll(null, null);
 }
Esempio n. 2
0
 public OverlayWindow(string ImgPath, string MaskPath)
 {
     InitializeComponent();
     mask = null;
     //BoxImg.Controls.Add(BoxMask);
     BoxMask.Parent   = BoxImg;
     BoxMask.Location = Point.Empty;
     BoxImg.Load(ImgPath);
     BoxMask.Load(MaskPath);
 }
Esempio n. 3
0
        private void BtnNext_Click(object sender, EventArgs e)
        {
            try
            {
                this.processing.Next();
                BoxImg.Load(this.processing.GetImagePath());
                BoxMask.Load(this.processing.GetMaskPath());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            this.UpdateProgressBar();
            this.UpdateOverlay();
        }
Esempio n. 4
0
        private void BtnLoad_Click(object sender, EventArgs e)
        {
            try
            {
                this.processing.Start();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            BtnOverlay.Enabled = true;
            BtnPrev.Enabled    = true;
            BtnNext.Enabled    = true;
            BtnSave.Enabled    = true;

            progressBar.Maximum = this.processing.GetCountImages();

            BoxImg.Load(this.processing.GetImagePath());
            BoxMask.Load(this.processing.GetMaskPath());
        }