[.net] Getting Thumbnails from Explorer?

Started by
4 comments, last by orbano 16 years, 10 months ago
Hi! Is there any way to obtain a thumbnail image from an arbitrary file, like Explorer does? Thanks in adnvance! orbano
"Knowledge is no more expensive than ignorance, and at least as satisfying." -Barrin
Advertisement
Check out Image.GetThumbnailImage.

(Took all of about two seconds to search MSDN for this.)
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.
"Knowledge is no more expensive than ignorance, and at least as satisfying." -Barrin
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.)
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#.

thank you, mutex!
"Knowledge is no more expensive than ignorance, and at least as satisfying." -Barrin

This topic is closed to new replies.

Advertisement