Re: too many picture controls really slows down my application



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


.



Relevant Pages

  • Re: Digital projectors? bit OT
    ... the pictures? ... I load mine from the computer. ... I load the photos onto the computer direct ... would go down the new camera, slide copier, lap top, projector lane. ...
    (uk.rec.gardening)
  • Re: This is how: (Dark JPG follow-up...)
    ... And a 5x7 would be 260 DPI. ... I don't really know how the photographer prepared the JPGs, ... Photoshop can do everything, ... links I send you of the old and retouched pictures: ...
    (rec.photo.digital)
  • Re: random pictures and pages wont display
    ... McAfee Privacy Service has caused problems with display of images. ... Turn on the windows Firewall and disable ... Other possibilities at: Red X- Pictures do not Show: ... > If I refresh the page, the page will load fine. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: A Little Help - Inserting Pictures
    ... It seems to me that this boils down to: PPT2002 doesn't like the JPGs your D40 ... But if you run the JPGs through a conversion program to reduce their ... Offload the pictures to a directory on my hard drive. ... slightly larger than the originals; however, ...
    (microsoft.public.powerpoint)
  • Re: Re: Durango Towing
    ... just pictures of springs on unloaded trucks. ... yet the words with which you accompany ... You do not need to put a load in it to know it is going to sag more ... with less springs in it as this is not rocket science duh... ...
    (rec.outdoors.rv-travel)