예제 #1
0
파일: GraphicWindow.cs 프로젝트: WojtK/APO
        private void stretchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StretchWindow stretchWindow = new StretchWindow(this);

            stretchWindow.Show();
            this.Close();
        }
예제 #2
0
// ######################################## Stretch ###########################################################################
        private void StretchButton_Click(object sender, EventArgs e)
        {
            if (bitmap != null)
            {
                StretchWindow stretchWindow = new StretchWindow((Bitmap)PictureBox.Image, this.panel)
                {
                    TopLevel = false
                };
                stretchWindow.Text = this.Text;
                panel.Controls.Add(stretchWindow);
                stretchWindow.Show();
                this.Close();
            }
        }