K
K
Konstantin Kavensky2017-02-09 16:20:13
C++ / C#
Konstantin Kavensky, 2017-02-09 16:20:13

How to remove image cropping in picturebox?

There is a picturebox in which a picture is loaded on button click and another 90 degree rotation on click

pictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone);
            pictureBox1.Refresh();

And everything seems to be fine, but when you rotate a widescreen picture on its side, it is cut off.
How to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavlo Barmak, 2017-02-14
@kynisa

Should help

pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question