Okay so I want to rotate an image. However the rotate command is doing nothing. I've tried this with both JPEG and Bitmap images.
I just have a button and a picturebox. When i click the button the picturebox should rotate 90 degrees, however it does not do anything at all. Here is the code for the thing:
I tried it this way:
pictureBox1.Image.RotateFlip(System.Drawing.Rotate FlipType.Rotate90FlipNone);
and this way:
pictureBox1.Image.RotateFlip(RotateFlipType.Rotate 90FlipNone);
Both do nothing. The program runs fine though, no errors.
Any reason for this? Or is there another way to rotate an image?