Parameter Description:
Sourcefile: background picture file
Text: Text to display
public void MakeCheckImage (string sourceFile, string text) {Response.Clear (); try {// picture Bitmap sImage = new Bitmap (sourceFile); // codes FIG Bitmap wImage = new Bitmap (100,30, System.Drawing .Imaging.pixelformat.format24bppRGB); Graphics wg = graphics.fromimage (wimage); wg.clear (color.white); wg.drawstring (Text, New Font ("Verdana", 18), New Solidbrush (Color.Black) , 0, 0); wg.save (); // make graphics. Graphics g = graphics.fromimage (simage); int x; // Temporary variable int y; // Memachment variable INT W = 100; // Verification The width INT H = 30; // verify the height INT Al; // alpha Int rl; // red INT GL; // Green INT BL; // Blue // Start Draw FOR (x = 1; x < w; x ) {for (y = 1; y