B
Bob
Hi there,
I need to show an image centered on a form. That's easy,
use a Picturebox... problem is the images may be
different sizes, and I need to resize to show the image
with the correct aspect ratio (ie: height vs width)...
sometimes the image will be too big to fit on the form so
then I'd like scrollbars... I need like a "shrink/stretch
to fit" method which understands the aspect ratio bit....
Is it me or is the picturebox control pretty useless...?
Can anybody suggest a way of achieving what I want with
standard .Net controls... or am I going to have to
subclass the picturebox (or make my own version)...?
Any help appreciated...
Cheers
I need to show an image centered on a form. That's easy,
use a Picturebox... problem is the images may be
different sizes, and I need to resize to show the image
with the correct aspect ratio (ie: height vs width)...
sometimes the image will be too big to fit on the form so
then I'd like scrollbars... I need like a "shrink/stretch
to fit" method which understands the aspect ratio bit....
Is it me or is the picturebox control pretty useless...?
Can anybody suggest a way of achieving what I want with
standard .Net controls... or am I going to have to
subclass the picturebox (or make my own version)...?
Any help appreciated...
Cheers