468,556 Members | 2,404 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Share your developer knowledge by writing an article on Bytes.

VB6 thumbnails the easy (and fast) way

8,435 Expert 8TB
Hi all.

Just wanted to pass along the benefit of my experiences in producing thumbnail images in VB6 for a project I was working on.

I needed to take a bunch of images (JPG, GIF, whatever) from disk and produce smaller thumbnail versions to store for my own purposes. I had coded the conversion myself, and it worked just fine. However, it was very slow. For a typical photo from a digital camera, even on a decent not-too-old PC (brand-new fast games machine circa 2010) it could take 20-30 seconds. Obviously something better was needed.

Search results here and elsewhere on the web showed that the same issue has come up numerous times over the years, and the responses vary quite widely. Generally it involves some specific product such as FreeImage which produces thumbnails, often there are convoluted API calls involved.

In the end though, I did it myself. By creating a second picturebox and using the PaintPicture method, I simply copied the original image to the size I wanted in the new picturebox, then read it from there. Total time per image, maybe a second if it's a big one.
Apr 22 '12 #1
0 3977

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by William Stacey | last post: by
1 post views Thread by James Dean | last post: by
2 posts views Thread by anne001 | last post: by
4 posts views Thread by setesting001 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.