I\'m trying to write a html helper extension that outputs an image tag. I need to access (within C# code) something like Razor\'s @Url.Content() helper to get the proper URL
Yes you can.
From a controller you can call:
this.Url.Content("~/Somerelativepath?somethingelse=true");