找不到类型或命名空间名称“Bitmap”(是否缺少 using 指令或程序集引用?)源错误: 行 411:    public System.Drawing.Bitmap BuildBitmap(int width, int height, string strBmp)
行 412:    {
行 413:        System.Drawing.Bitmap tmpBmp = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format32bppRgb);
行 414:        string[] StmpBmp = strBmp.Split(',');
行 415:        int pos = 0;
 源文件: f:\gjp\lwdj\AddPersonInfo.aspx.cs    行: 413 

解决方案 »

  1.   


    using System.Drawing;添加引用
      

  2.   

    Bitmap这个类在System.Drawing命名空间中。
    using System.Drawing;
      

  3.   

    using System.Drawing;
    如果还不得那就在右边的项目也添加这个引用就行了!
      

  4.   

    试试System.Drawing.Bitmap tmpBmp = new System.Drawing.Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format32bppRgb);
      

  5.   

    System.Drawing.Bitmap tmpBmp = new System.Drawing.Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format32bppRgb);