Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display thumbnail view of an image

Status
Not open for further replies.

rgrayclamps

Mechanical
Joined
Aug 6, 2004
Messages
376
Location
US
How do I display thumbnail view of an image in a VB form (VB6.0)?

Thanks,

Alex
 
Load the image file into an image object on the form.
Set Image.Autosize false and then you can set the height and width.
 
Hi, FrancisL:

Thanks for your repsonse! I can display a picture through an image object on VB form. But I do think this is an efficient way to display a preview (a thumbnail view).

Alex
 
Image controls are quite efficient for most purposes, you can use an array to show many images too.
There are of course many other ways, but I don't know enough about your application to be more helpful.
 
I have a very simple database program for pictures using VB6.0. I would like to display a thumbnail view as I navigate through records. Most image software, including Windows Explorer, have ability to show pictures in thumbnail view. I do not think they load entire images to image control object.

Thanks,

Alex
 
The first time you open up a folder containing pictures in Windows explorer, it creates thumbnail images and saves them to a file (thumbs.db if I remember right, and I think it is a hidden file by default). The next time you open the folder, the thumbnails show up quickly since they have been cached.

So, using FrancisL's suggestion you could load the picture to an imaging control and save the image at the new (thumbnail) size for later use.
 
I think they probably do. Have a look at my software, ControlDraw - it is is in part a database containing images.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top