public void Update(string ImgPath, string MaskPath) { mask = null; BoxImg.Load(ImgPath); BoxMask.Load(MaskPath); this.trackBar_Scroll(null, null); }
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); }
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(); }
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()); }