Fork me on GitHub
@Html.DynamicImageTag(b => b.WithLayer(
	LayerBuilder.Text.Text("Generic message.").FontSize(40).FontBold().StrokeWidth(2).StrokeColor(Colors.Red)
))

@Html.DynamicImageTag(b => b.FillBackgroundColor(Colors.LightGray).WithLayer(
	LayerBuilder.Text.Text("Padded text").FontSize(40).PaddingLeft(15).PaddingRight(15)
))

@Html.DynamicImageTag(b => b.FillBackgroundColor(Colors.LightGray).WithLayer(
	LayerBuilder.Text.Text("Padded fixed width text").FontSize(40).PaddingLeft(15).PaddingRight(15)
		.Width(600).HorizontalTextAlignment(TextAlignment.Center)
))

@Html.DynamicImageTag(b => b.WithLayer(
	LayerBuilder.Text.Text("Message using a custom font.").FontSize(50).StrokeColor(Colors.Blue)
		.FontCustomFontFile("~/Assets/Fonts/ADamnMess.ttf").FontName("A Damn Mess")
))

@Html.DynamicImageTag(b => b.FillBackgroundColor(Colors.CornflowerBlue).WithLayer(
	LayerBuilder.Text.Text("Here is some text with\nan explicit line break").Multiline()
		.FontSize(50).Width(650)
))

@Html.DynamicImageTag(b => b.FillBackgroundColor(Colors.Coral).WithLayer(
	LayerBuilder.Text.Text("Here is some text with an implicit line break").Multiline()
		.FontSize(50).Width(650)
))