I first off recommend just re-creating them every-time. If you do the
generation
properly you can thumbnail up to 120 images per minute at relatively decent size
(128x128).
Those numbers came off of my slow web server machine, so I'm sure you can
thumbnail
even faster.
Depending on how you are displaying them though, thumbnailing might hang your
UI. That
can be bad. Throw your thumbnailing off to a thread so you don't have to worry
about your
application being bogged down.
http://home.online.no/~oeyvtoft/ToftWeb/html/frameset/3d.htm
http://home.online.no/~oeyvtoft/ToftWeb/html/frameset/flash.htm
If you still want to store thumbs, then try using the BinaryFormatter and
tossing them in as byte[]'s.
I'm in the process of writing an article on just this concept, the idea of a
fully functional image browser,
and I'm code complete, just not article complete. If you are interested, I'll
probably post something
on the
www.windowsforms.net/Forums in the Code Samples section detailing each of
the neat parts
before the full article is done.
--
Justin Rogers
DigiTec Web Consultants, LLC.
oeyvind toft said:
I`m writing an image browser and wonder how to store
thumbnails in a single file (ala Paint Shop Pro) so that they
dont have to be recreated each time a folder is opened.
Any ideas?
Oeyvind