private void RotateButton_Click(object sender, EventArgs e) { Image image = PictureBox1.Image; int angle = int.Parse(angleField.Text); image = imageOperation.RotateImage(image, angle); PictureBox1.Image = image; }
private void RotateButton_Click(object sender, EventArgs e) { Bitmap image = ConvertToBitmap(PictureBox1.Source as BitmapSource); int angle = int.Parse(angleField.Text); image = imageOperation.RotateImage(image, angle); PictureBox1.Source = BitmapToImageSource(image); }