如何使用 OpenFileDialog 显示 TGA 文件的缩略图?
是否可以在 OpenFileDialog 中显示 TGA 缩略图?当使用 System.Windows.Controls.OpenFileDialog 控件浏览 Windows 7 图像文件夹时,它将显示 JPG、PNG 或 BMP 图像文件的预览缩略图图标。不幸的是,Windows不显示 TGA 文件的预览。但是,Windows 确实在 Windows 资源管理器中显示 TGA 预览缩略图。是否有扩展或设置可以在 OpenFileDialog 中显示 TGA 缩略图?
OpenFileDialog 显示 JPG 文件的缩略图:
OpenFileDialog 不显示 TGA 缩略图:
但是,资源管理器确实显示 TGA 缩略图:
Is it possible to show TGA thumbnails in OpenFileDialog? When using the System.Windows.Controls.OpenFileDialog control to browse image folders Windows 7, it will show preview thumbnails icons for JPG, PNG, or BMP image files. Unfortunately, Windows does not show previews for TGA files. However, Windows does show TGA preview thumbnails in Windows Explorer. Is there an extension or setting that will show TGA thumbnails in OpenFileDialog?
OpenFileDialog shows thumbnails for JPG files:
OpenFileDialog does NOT show TGA thumbnails:
However, Explorer DOES show TGA thumbnails:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我公司的一位艺术家提供了一个解决方案。 Windows 7 没有对 TGA 缩略图的内置支持,但有 3rd 方应用程序(例如 MysticThumbs)添加了支持 TGA 文件。事实上,Windows 资源管理器在我的示例中显示 TGA 拇指的唯一原因是因为我安装了 MysticThumbs。但是,该应用程序的 OpenFileDialog 没有显示缩略图,因为它是 32 位应用程序,而我安装了 64 位版本的 MysticThumbs。除了 64 位版本之外,我还安装了 32 位版本的 MysticThumbs,现在我在 Windows 资源管理器和我的 32 位应用程序中都看到了 TGA 缩略图。
An artist at my company provided a solution. Windows 7 has no built-in support for TGA thumbnails, but there are 3rd party applications such as MysticThumbs that add support for TGA files. In fact, the only reason Windows Explorer showed TGA thumbs in my example was because I had MysticThumbs installed. However, the application's OpenFileDialog did not show thumbnails because it was a 32-bit application and I had installed the 64-bit version of MysticThumbs. I installed the 32-bit version of MysticThumbs in addition to the 64-bit version, and now I see TGA thumbnails in both Windows Explorer and my 32-bit application.
FreeImage.NET 也可以打开 TGA 图像。
FreeImage.NET can also open TGA images.