private void buttonRotate_Click(object sender, EventArgs e) { try { bitmap = new Bitmap(pictureBox.Image); Bitmap editedBitmap = fip.Rotate(bitmap, (int)numericUpDownRotate.Value); pictureBox.Image = editedBitmap; this.image = editedBitmap; } catch { toolStripStatusLabel1.Text = "Coś poszło źle..."; } }