M
Marcus Kwok
I have a Form that has a PictureBox in it that has a dock style set to
"fill". I can set the PictureBox's PictureBoxSizeMode to StretchImage,
but I would like to preserve the aspect ratio of the image so that the
user may scale the size of the image but not squish it out of
proportion. Is there a simple way to do this?
If it is not possible or requires too much overhead I may just use the
ScrollablePictureBox from
http://www.c-sharpcorner.com/Graphics/ScrollablePictureBox.asp
and forget about being able to resize the image.
I am writing in Managed C++ (.NET 1.1) but in the past I have not had
much difficulty translating code from VB.NET or C# into Managed C++.
Thanks for any advice.
"fill". I can set the PictureBox's PictureBoxSizeMode to StretchImage,
but I would like to preserve the aspect ratio of the image so that the
user may scale the size of the image but not squish it out of
proportion. Is there a simple way to do this?
If it is not possible or requires too much overhead I may just use the
ScrollablePictureBox from
http://www.c-sharpcorner.com/Graphics/ScrollablePictureBox.asp
and forget about being able to resize the image.
I am writing in Managed C++ (.NET 1.1) but in the past I have not had
much difficulty translating code from VB.NET or C# into Managed C++.
Thanks for any advice.