Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sizing an image in image control
Message
From
05/01/2005 19:54:35
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
30/12/2004 09:05:58
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00973250
Message ID:
00974573
Views:
25
>I have a WebControls.Image control in my webform. I size the control to a certain size and fill the ImageUrl property at runtime.
>
>The correct image is displayed at runtime, however the image is always stretched out and does not look good.
>
>Is there a property similar to Visual Foxpro's Stretch or Isometric that will allow the image to display properly within the image controls area? Specifically VFP's Stretch property = Isometric.
>
>Thanks,
>
>Jerry

Jerry,

System.Drawing.Image.GetTumbnailImage is exactly what you are looking for.
Previous
Reply
Map
View

Click here to load this message in the networking platform