DotImage Knowledgebase

Home : Create a Thumbnail List Viewer in ImgX
Q10003 - HOWTO: Create a Thumbnail List Viewer in ImgX

A common question for ImgX users is how to create a thumbnail list which shows a list of images in a nice thumbnail view. This example demonstrates one way of accomplishing that task. It takes advantage of the Scaled load of JPEG images and is fairly quick.

This particular example is fairly easy to implement, but will become slow with a directory of many images which is why the example limits the images shown to 100. Some improvements could be made including:

1) Using an ImgX object (not tied to the control) to resample the image and set that resulting image to the ImgXCtrl. This method doens't require nearly as much memory and it more efficient.

2) Cache the images in a file similarly to the Windows Thumbnail Viewer. Also, only load as many ImgXCtrl objects as are shown on the screen.

Related Articles
No Related Articles Available.

Article Attachments
ThumbnailsDemo.zip

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2013. InstantASP Ltd. All Rights Reserved

preload preload preload