日期:2014-05-17 浏览次数:21132 次
//写个简单的给你参考下吧
private Bitmap CreateBmp(int width,int height,string type)
{
    Bitmap bmp = new Bitmap(width,height);
    using(Graphics g = Graphics.FromImage(bmp)
    {
       if(type == "1")
       {
          //g.FillRectangle() 填充个矩形
       }
       else
       { 
          //随便画另个图形,比如画个圆
       }
    }
}
//调用
Image imga = CreateBmp(100,100,"1");
Image imgb = CreateBmp(100,100,"2");
//你看看A、B区域还是一样么?