Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2002, 05:28 PM
3homer
Guest
 
Posts: n/a
Default how to make a thumbview of all pictures in a folder ?

how to make a thumbview of all pictures in a folder ?

~3homer~
Thanx,very much.
Reply With Quote
  #2  
Old 09-29-2002, 06:58 PM
GoodFun GoodFun is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,645
Default RE: how to make a thumbview of all pictures in a folder ?

several things are needed for that...

for one, I would suggest you get Graphics32, a very fast graphics library. It has a great routine to scale the pictures with filtering, i.e. the picture will still look good even at the smaller size, yet the routine is very fast.
You can get Graphics32 from http://www.g32.org

In addition to that you need to create a list of all the picture files in a folder, check the post below to see how to list files in a certain folder:

http://www.delphipages.com./threads/thread.cfm?ID=61074&G=61054

You will have to adopt it a bit, i.e. you only want to list the files and not the recursive folders and you want to select every file that matches a number of extensions, i.e. .bmp, .jpg, .gif

once you have that list, you need to load each of them into a hidden Image32 component, then you scale it down to the correct size and copy it to the next visible Image32 component in your Thumbnail list.

Hope this helps,

Marcel

Please click on Accept if this helped...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 02:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.