///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public BackgroundImagesGeneratorForm() { InitializeComponent(); numberOfSin1.Text = "167"; numberOfSin2.Text = "241"; phaseShift1.Text = "0"; phaseShift2.Text = "90"; phaseShift3.Text = "180"; phaseShift4.Text = "270"; //ShooterSingleton.init(); convertValues(); formForStripes = new Form(); formForStripes.Size = new Size(800 + 8, 600 + 8); formForStripes.StartPosition = FormStartPosition.Manual; pc1 = new CustomPictureBox(); pc1.BackColor = Color.White; pc1.Location = new Point(0, 8); pc1.Size = new Size(800, 600); pc1.SizeMode = PictureBoxSizeMode.StretchImage; pc1.BorderStyle = BorderStyle.Fixed3D; formForStripes.Controls.Add(pc1); updateInitialImage(); pc1.Refresh(); formForStripes.Show(); }
public ImageForm() { InitializeComponent(); this.imageBox = new CustomPictureBox(); this.imageBox.Dock = DockStyle.Fill; this.imageBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.Controls.Add(this.imageBox); }