I want to use the answer to this question here: Resize image proportionally with MaxHeight and MaxWidth constraints
But my image is a .Net image. I was wondering if there is any way to resize the image proportionally with a maxheight and maxwidth constraint for a .Net Image. Here is what the asp code looks like:
<asp:Image ID="Image1" runat="server" Height="445px" Visible="False" Width="640px" />
The code behind looks like this:
Image1.ImageUrl = "/Images/" + image1Link.ToString();