public class check : Page
{
private void Page_Load(object sender, EventArgs e)
{
Bitmap bmp = new Bitmap( blankW, blankH );
Graphics g = Graphics.FromImage( bmp );
g.FillRectangle( ... );
g.DrawString( ... );
g.DrawLine( ... );
Response.ContentType = "image/gif";
bmp.Save( Response.OutputStream, ImageFormat.Gif );
g.Dispose();
bmp.Dispose();
}
...
} |