Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Minor readme changes

  • Loading branch information...
1 parent 5295fa6 commit f99928d88b0d42650760f2c76e5d42563298f051 @benfoster committed
Showing with 4 additions and 0 deletions.
  1. +4 −0
@@ -76,6 +76,10 @@ Notice that both take in a delegate for configuring the ImageUrlBuilder.
We've designed `ImageUrlBuilder` to be reusable. A common scenario would be to loop through a collection of image paths and display the image. Since you probably wan't all your images to look the same, you should configure your builder and reuse it for every image. Both the UrlHelper and HtmlHelper extension methods have overloads for doing this:
+ @{
+ var builder = new ImageUrlBuilder().Resize(img => img.Dimensions(200, 300));
+ }
@foreach (var image in Model.Images) {
<li><img src="@Url.ImageUrl(image, builder)" alt=""/></li>

0 comments on commit f99928d

Please sign in to comment.
Something went wrong with that request. Please try again.