Il seguente esempio mostra come poter scrivere un testo su una immagine utilizzata come template.

Public Sub WriteOnImage(_ImageName As String, _Text As String)
	Dim Template As String = Server.MapPath("template.bmp")
	Dim _Image As System.Drawing.Image
	_Image = System.Drawing.Image.FromFile(Template)
	Dim _Object As Graphics = Graphics.FromImage(_Image)
	Dim _Char As Font = New Font("Verdana", 12)
	Dim _Color As SolidBrush = New SolidBrush(Color.Black)
	Dim _PointXY As PointF = New PointF(225.0F, 170.0F)
	_Object.DrawString(_Text, _Char, _Color, _PointXY)
	_Image.Save(_ImageName, ImageFormat.Jpeg)
	_Image.Dispose()
End Sub