如何检索Windows Vista和七个Windows Explorer使用的文件预览?
-
04-10-2019 - |
题
我正在开发Delphi文档管理应用程序,因此我以某种方式为用户提供了类似于Windows Explorer的功能。
我想知道是否有一种方法可以获取Windows Explorer使用的预览。例如,Windows Explorer为PDF文档创建一个小的缩略图,并在用户选择查看“大图标”时将其显示。有没有办法检索预览?
MyTImage := GiveMePreviewForFile('C:\Test\File.pdf');
解决方案
@user193655,使用 IExtractImage 接口是必经之路, this interface exposes methods that request a thumbnail image from a Shell folder
检查此图像
其他提示
查看iextractimage的文档。基本上,您将IshellFolder与IextractImage一起使用您要寻找的图片。
不隶属于 StackOverflow