Stetch picture

This commit is contained in:
Waldi
2016-11-25 13:09:09 +01:00
parent dc21552c5b
commit e6471f3fe1
3 changed files with 10 additions and 4 deletions

View File

@@ -1606,12 +1606,14 @@ namespace BeWo.View
form.StartPosition = FormStartPosition.CenterScreen;
form.Size = imgbit.Size;
form.FormBorderStyle = FormBorderStyle.FixedSingle;
form.FormBorderStyle = FormBorderStyle.Sizable;
PictureBox pb = new PictureBox();
pb.Dock = DockStyle.Fill;
pb.Image = imgbit;
pb.SizeMode = PictureBoxSizeMode.StretchImage;
form.Controls.Add(pb);
form.ShowDialog();
}

View File

@@ -1617,13 +1617,15 @@ namespace BeWo.View.Detail
Bitmap imgbit = new Bitmap(img);
form.StartPosition = FormStartPosition.CenterScreen;
form.Size = imgbit.Size;
form.FormBorderStyle = FormBorderStyle.FixedSingle;
form.ClientSize = imgbit.Size;
form.FormBorderStyle = FormBorderStyle.Sizable;
PictureBox pb = new PictureBox();
pb.Dock = DockStyle.Fill;
pb.Image = imgbit;
pb.SizeMode = PictureBoxSizeMode.StretchImage;
form.Controls.Add(pb);
form.ShowDialog();
}

View File

@@ -588,12 +588,14 @@ namespace BeWo.View.Detail
form.StartPosition = FormStartPosition.CenterScreen;
form.Size = imgbit.Size;
form.FormBorderStyle = FormBorderStyle.FixedSingle;
form.FormBorderStyle = FormBorderStyle.Sizable;
PictureBox pb = new PictureBox();
pb.Dock = DockStyle.Fill;
pb.Image = imgbit;
pb.SizeMode = PictureBoxSizeMode.StretchImage;
form.Controls.Add(pb);
form.ShowDialog();
}