Example #1
0
        private void resizeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            resize resizeForm = new resize();

            if (resizeForm.ShowDialog() == DialogResult.OK)
            {
                adjustWindow(resizeForm.Width, resizeForm.Height);
                filter(bitmap.resize(resizeForm.Width, resizeForm.Height));
            }
        }
Example #2
0
        private void resizeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            resize resizeForm = new resize();

            if (resizeForm.ShowDialog() == DialogResult.OK)
            {
                UCAdd(ImageBoxInApp.Image);
                System.Drawing.Bitmap image = (Bitmap)ImageBoxInApp.Image;
                ImageBoxInApp.Image = image.resize(resizeForm.Width, resizeForm.Height);
                adjustWindow(resizeForm.Width, resizeForm.Height);
                RChanges.Clear();
            }
        }
Example #3
0
        private void resizeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            resize resizeForm = new resize();

            if (resizeForm.ShowDialog() == DialogResult.OK)
            {
                adjustWindow(resizeForm.Width, resizeForm.Height);
                filter(bitmap.resize(resizeForm.Width, resizeForm.Height));

                var img = (Bitmap)bitmap.Clone();
                adjustWindow(img.Width, img.Height);
                pictureBoxImage.Image    = img;
                pictureBoxImage.SizeMode = PictureBoxSizeMode.CenterImage;
            }
        }
Example #4
0
 private void resizeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     resize resizeForm = new resize();
     if (resizeForm.ShowDialog() == DialogResult.OK)
     {
         UCAdd(ImageBoxInApp.Image);
         System.Drawing.Bitmap image = (Bitmap)ImageBoxInApp.Image;
         ImageBoxInApp.Image = image.resize(resizeForm.Width, resizeForm.Height);
         adjustWindow(resizeForm.Width, resizeForm.Height);
         RChanges.Clear();
     }
 }