473,396 Members | 1,849 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,396 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 4896

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

Similar topics

20
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.,...
13
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...
1
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...
2
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...
1
by: Joe | last post by:
any other way than Try / Catch / Finally ??
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.