Resize image to 30px height, and keep aspect ratio

Aug 9, 2012 at 1:56 PM
Edited Aug 9, 2012 at 2:44 PM

Would be really helpfull with a code example!

Update:

Okay so that was easier than i imagined, sorry for the pointlessness :p!

int newHeight = 30;
var svg = SvgDocument.Open(Server.MapPath(@"\test.svg"));
svg.Width = svg.Width * (newHeight / svg.Height);
svg.Height = newHeight;
svg.Draw().Save(Server.MapPath(@"\test.png"),ImageFormat.Png);