ASP.NET MVC Samples

C#
<!-- Chaining commands -->
@this.ImageTag("Image2.png", task => task.ResizeHeight(300).Rotate(45))
C#
<!-- Adding html attributes to generated <img> tag -->
@this.ImageTag("Image3.jpg", task => task.FlipVertical(), new { alt = "description" })
C#
<!-- Changing image file name in generated url for seo purposes -->
@this.ImageTag("Image4.jpg", task => task.Brightness(50).FileName("seo-name"))
C#
<!-- Using ImageUrl and also changing format of the resulting image -->
Image url: @this.ImageUrl("Image5.jpg", task => task.Crop(0, 0, 100, 100).Format(ImageWebSafeFormat.Png))