winform 文件 缩略
场景:winform怎么显示文件夹下图片的缩略图
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:
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:
- C# code
{ SharedClasses.ThumbnailCreator c = new SharedClasses.ThumbnailCreator(); Bitmap b = c.GetThumbnail(@"C:\windows"); b.Save(@"c:\temp\windowsFolder.jpg"); }
------解决方案--------------------
用Bitmap类下的GetThumbnailImage的方法,具体用法看文档