Re: too many picture controls really slows down my application
- From: "Guy" <someone@xxxxxxxxxxxxxxx>
- Date: Sun, 23 Dec 2007 16:01:35 -0400
As Beastfish has already said, Explorer is fast because it is not
actually loading the pictures. It instead loads ready prepared
thumbnails from a cache. In your case you are loading the actual
pictures, which is why each one takes about half a second on your
machine because that's about how long it takes to load and decode and
resize for viewing a normal sized jpeg photo. (I assume that by
"picture controls" you actually mean "image controls" and not "picture
boxes" so that the image control automatically reduces the size for
you to create a suitably sized thumbnail?).
For the record, I'm running XPHome on a Pentium 4 at 3GHz with 512MB RAM.
When I use Explorer and view a folder of pictures (which are all JPGs) the
miniatures in Explorer load very very fast. Now I realize that Windows
stores thumbnails of graphic files in a Thumbs.db file, which it keeps in
every folder (that have graphics); and it is with this file that Windows is
able to display thumbnails (miniatures) of the pictures of my folder very
fast.
Still, there is a way to deactivate the thumbs.db file, which is what I have
done on my system. I have also (not that I necessarily needed to) deleted
every thumbs.db file on my system. Despite this, Explorer is still able to
display miniatures of my pictures (JPGs) very fast, at least 25 per second.
Of course, I realize that JPGs are not large graphic files (compared to
bitmaps).
So then, I saved about 20 of my JPGs as BMPs. Only then did Explorer have a
real problem displaying miniatures. In fact, it took about 3seconds to load
some of the miniatures. Remember that my Windows is not using the thumbs.db
at this point. Therefore, like Mike said, I'm guessing that in my project,
VB is very slow to load my JPGs because of the controls and code that I am
using.
Having said that, I am convinced that there are ways to load JPGs very fast.
In fact, I found the following code "Intel® JPEG Library v. 1.0". I'm
hoping, since my project is just working with JPGs, that this may help me
speed up my app.
Cheers,
Guy
.
- Follow-Ups:
- Re: too many picture controls really slows down my application
- From: Mike Williams
- Re: too many picture controls really slows down my application
- References:
- too many picture controls really slows down my application
- From: Guy
- Re: too many picture controls really slows down my application
- From: Mike Williams
- too many picture controls really slows down my application
- Prev by Date: Re: Can I install VB 3.0 on Vista?
- Next by Date: Re: too many picture controls really slows down my application
- Previous by thread: Re: too many picture controls really slows down my application
- Next by thread: Re: too many picture controls really slows down my application
- Index(es):
Relevant Pages
|