Fork me on GitHub
The original image is not resized; the border is added around the edge of the image.
@Html.DynamicImageTag(b => b.WithLayer(
	LayerBuilder.Image.SourceFile("~/Assets/Images/AutumnLeaves.jpg")
		.WithFilter(FilterBuilder.Resize.To(500, 500))
		.WithFilter(FilterBuilder.Border.Width(20).Fill(Colors.Green))
))