Example #1
0
 private void buttonSizeChange_Click(object sender, EventArgs e)
 {
     try
     {
         bitmap = new Bitmap(pictureBox.Image);
         Bitmap editedBitmap = fip.Resize(bitmap, (int)numericUpDownWidth.Value, (int)numericUpDownHeight.Value);
         pictureBox.Image = editedBitmap;
         this.image       = editedBitmap;
     }
     catch
     {
         toolStripStatusLabel1.Text = "Coś poszło źle...";
     }
 }