hi,
I want to create the thumbnails of various images(*.tiff,*.jpeg....) from an specified folder.I had tried several methods but all in vain.Kindly give me info regarding this...
hi,
I want to create the thumbnails of various images(*.tiff,*.jpeg....) from an specified folder.I had tried several methods but all in vain.Kindly give me info regarding this...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ken LinderPosted Feb 8, 2007, 10:13 AM
Programatically, you can iterate through each file in the directory and use the GetThumbNailImage() method to resize it.
It would look something like this...
Image.FromFile(ImageFilenameVar).GetThumbnailImage(newWidth, newHeight, ImageAbortCallbackProc, IntPtr.Zero).Save("ThumbnailSaveDir\" + ImageFilenameVar);
The above is C# but should easily translate to VB.NET
Anyway, GetThumbnailImage() is probably what you are interested in.
Ken Linder