相关代码 |
|
void Page_Load(Object sender , EventArgs e) { Bitmap objBitmap; Graphics objGraphics; //Create Bitmap objBitmap = new Bitmap( 400, 200 ); //Create Graphics objGraphics = Graphics.FromImage( objBitmap ); //Draw Rectangle objGraphics.DrawRectangle( Pens.Green, 50, 50, 100, 100 ); //Display Bitmap objBitmap.Save( Response.OutputStream, ImageFormat.Gif ); }
相关资源 |
|