public Form1() { segm = new Segmentacja(); InitializeComponent(); ToolTip1 = new System.Windows.Forms.ToolTip(); numberofSlice = 0; }
private void przekroj_Scroll(object sender, ScrollEventArgs e) { // int slide = this.trackBar1.Value; Segmentacja segmentacja = new Segmentacja(); numberofSlice = this.przekroj.Value; Bitmap obraz = segmentacja.konwertujObraz(imagetoDisplay, numberofSlice); // this.pictureBox1.Hide(); this.pictureBox1.Image = obraz; // this.pictureBox1.Update(); this.pictureBox1.Refresh(); this.pictureBox1.Show(); }