http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=45E7E33C-F149-450E-B5D5-832958C20538

解决方案 »

  1.   

    int iImgWidth = 250;
    int iImgHeight = 318;
    int iscale = (iImgWidth / 63)>(iImgHeight/63) ? (iImgWidth / 63) : (iImgHeight / 63);
      

  2.   

    运行这句后
    System.Drawing.Image image = System.Drawing.Image.FromFile(originalFilename);再
    int iImgWidth = image.Width;
    int iImgHeight = image.Height;
    int iScale = (iImgWidth / 63)>(iImgHeight/63) ? (iImgWidth / 63) : (iImgHeight / 63);