图片缩放功能是实现

  private Image GetThumbnail(string path, int width, int height)         {

            Image image = Image.FromFile(path);

            Image.GetThumbnailImageAbort myCallback = new Image.GetThumbnailImageAbort(ThumbnailCallback);

            Image thumbnail = image.GetThumbnailImage(width, height, myCallback, IntPtr.Zero);

            image.Dispose();

            return thumbnail;         }        

public bool ThumbnailCallback()         {          

   return false;      

   }

原文地址:https://www.cnblogs.com/wanyuan8/p/3352499.html