473,224 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,224 developers and data experts.

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 4851

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

Similar topics

by: GS | last post by:
The stdint.h header definition mentions five integer categories, 1) exact width, eg., int32_t 2) at least as wide as, eg., int_least32_t 3) as fast as possible but at least as wide as, eg.,...
by: William Stacey | last post by:
FYI. /// <summary> /// Author: William Stacey /// Fast and simple way to implement a singleton pattern without resorting /// to nested classes or other static vodo. Can also be easily converted...
by: James Dean | last post by:
I was wondering if anybody knew and easy way to read pixels. Is the easiest way to read a byte in convert it to a Bitarray and then when finished convert it back to Byte......I am looking in my...
by: anne001 | last post by:
I think I have php 4.4, mysql 5 and fast-cgi from curl -O http://fastcgi.com/dist/fcgi-2.4.0.tar.gz tar xvzf fcgi-2.4.0.tar.gz Here are the instructions I am trying to follow. Compile php as...
by: Joe | last post by:
any other way than Try / Catch / Finally ??
by: setesting001 | last post by:
How many of you are running Fast CGI instead of the popular mod_php? I planning to change to fast cgi since my applications need around 15MB memory to handle a single request, so consider if...
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.