[.net] Getting Thumbnails from Explorer?
Hi!
Is there any way to obtain a thumbnail image from an arbitrary file, like Explorer does?
Thanks in adnvance!
orbano
Quote:Original post by Dave Hunt
Check out Image.GetThumbnailImage.
(Took all of about two seconds to search MSDN for this.)
Do you know what _arbitrary_ means? Search MSDN for the meaning ;)
I want thumbnails for ANY type of files, from which Explorer is able to get one.
Try the info provided here.
(Ok, this took about 20 minutes to find in MSDN, but still...)
As for arbitrary, I took that to mean "image files from an arbitrary location" as opposed to "arbitrary file types." Sorry about the misinterpretation. (No MSDN search necessary for that one.)
(Ok, this took about 20 minutes to find in MSDN, but still...)
As for arbitrary, I took that to mean "image files from an arbitrary location" as opposed to "arbitrary file types." Sorry about the misinterpretation. (No MSDN search necessary for that one.)
To get thumbnails of files, including non-image files, use IExtractImage on XP, Vista or below, and IThumbnailCache on Vista only.
This article looks like a decent sample on how to use IExtractImage from C#.
This article looks like a decent sample on how to use IExtractImage from C#.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement