I have two PictureBoxes
where I want to show an image in the first and then a rotated version in the second. The code I would believe should work does act strange however, as the image is rotated in both PictureBoxes
:
Image im = Image.FromFile(D:\somefolder\picture.jpg");
pictureBox1.Image = im;
Image im_rot = im;
//Image im_rot = Image.FromFile(D:\somefolder\picture.jpg");
im_rot.RotateFlip(RotateFlipType.Rotate270FlipNone);
pictureBox2.Image = im_rot;
If I replace line 3 with line 4 it works, but why doesn't it work the other way?