winform如何显示文件夹下图片的缩略图
如题,文件夹下图片很多的情况下
[解决办法]
You might look into this article:
C# Class for generating image thumbnails using Windows Shell
The speed is fairly good and you can use it simply by:
{ SharedClasses.ThumbnailCreator c = new SharedClasses.ThumbnailCreator(); Bitmap b = c.GetThumbnail(@"C:\windows"); b.Save(@"c:\temp\windowsFolder.jpg");}
[解决办法]
用Bitmap类下的GetThumbnailImage的方法,具体用法看文档