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;      

   }

posted on 2013-10-05 15:57  万德源  阅读(274)  评论(0编辑  收藏  举报