//在网页上画图
Bitmap bmp = new Bitmap(100,50);
Graphics g = Graphics.FromImage(bmp);
g.FillRectangle(new SolidBrush(Color.Wheat),0,0,100,50);
Random rm = new Random();
int x = rm.Next() % 20;
int y = rm.Next()% 20;
int width = rm.Next()% 100;
int height = rm.Next()% 50;