WEBSWAPP Silverlight ASP.NET 3.5 ASP.NET 2.0 ASP.NET 1.0
Nested Data
Images
Dynamic Controls
System.Drawing

This demo relies on saving the image to a file before using it. Click here, however, to view a tutorial that draws an image without saving it a file using the ASP.NET 2.0 System.Drawing namespace

Using System.Drawing library to draw text and a button on the web

In this sample I I create a high-resolution bitmap object. I clear its background color, draw a polygon and fill it with a color then draw a text. Choose out of the predefined settings or specify the following parameters then press submit to receive a JPG image of the resulting button with a text on it.

Predefined settings
Flower button
OK button
Cancel button
Business Logo
Olives
Text on the button (max. 22 char)
Font Size (max. 1 char)
Bitmap width (max. 999px)
Bitmap Height (max. 99 px)
Font
Image Background Color
Button Background Color
ForeGround Color

Source code:

System.Drawing source code