http://ghd258.cnblogs.com/archive/2006/02/26/337957.aspx

解决方案 »

  1.   

     //载入图片,取得长宽
                System.Drawing.Image myImg = System.Drawing.Image.FromFile(oldImg);
                int ImgWidth = myImg.Width;
                int ImgHeight = myImg.Height;            int sWidth = 100; //设置缩略图初始宽度 
                int sHeight = 75; //设置缩略图初始高度             //按比例计算出缩略图的宽度和高度 
                if (ImgWidth >= ImgHeight)
                {
                    sHeight = (int)Math.Floor(Convert.ToDouble(ImgHeight) * (Convert.ToDouble(sWidth) / Convert.ToDouble(ImgWidth)));
                }
                else
                {
                    sWidth = (int)Math.Floor(Convert.ToDouble(ImgWidth) * (Convert.ToDouble(sHeight) / Convert.ToDouble(ImgHeight)));
                }
      

  2.   

    http://blog.csdn.net/wangdetian168/archive/2007/01/18/1486759.aspx
    这个应该能满足你