I have PictureBox picture
.
I use:
picture.Size = bmp.Size;
picture.Image = bmp;
Let's say there are two integers maxWidth
and maxHeigth
.
I want to add vertical/horizontal scrollbar to picture
when its size exceeds maxWidth
and/or maxHeight
. How can I do that?