我正在开发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

您可以在此找到一个非常完整的样本 地点 源代码是 这里.

检查此图像

alt text

其他提示

查看iextractimage的文档。基本上,您将IshellFolder与IextractImage一起使用您要寻找的图片。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top