<%@ import namespace="system.drawing" %> 
<%@ import namespace="system.drawing.imaging" %> 
<%@ import namespace="system.drawing.drawing2d" %> 
<% 
dim imgOutput as New bitmap(170, 30, pixelformat.format24bpprgb) 
dim g as graphics = graphics.fromimage(imgOutput) 
g.clear(color.Red) 
g.FillRectangle(New linearGradientBrush(New point(0,0), New point(170,30), color.fromArgb(0,0,0,0),color.fromArgb(255,255,255,255)),0,0,170,30) 
g.drawString("Hello, world !", New font("Verdana",16,fontstyle.bold),new SolidBrush(Color.white),New pointF(1,1)) 
g.drawString("Hello, world !", New font("Verdana",16,fontstyle.bold),new SolidBrush(Color.black),New pointF(3,3)) 
g.drawString("Hello, world !", New font("Verdana",16,fontstyle.bold),new SolidBrush(Color.yellow),New pointF(2,2)) 
imgOutput.save(response.outputstream, imageformat.jpeg) 
g.dispose() 
imgOutput.dispose() 
%>