Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Image Thumbnailer {300 points}

Hello,
I am looking for information on how to build a small
Image Thumbnailer will the following aspects.

- Scans current directory for BMP, PNG, GIF, JPG
- Displays the Image in a 100 x 100 Thumbnail
- Has a option to save scaned Directory for faster access.
- Is also able to open this saved file.

Should you have any information you think could be useful,
please post it as a comment.
If your information was valuable,
I will then award you with 300 points.

No 3rd party controls, VB code only.
0
vbvpg
Asked:
vbvpg
1 Solution
 
chabaudCommented:
To scan a directory use API calls (FindFirstFile...) to scan directory recursively.

To stretch the images to 100x100 in VB, you can use the PictureClip control. (PICCLP32.OCX)

Then you can save bitmaps to .bmp.

I could send you some samples...
0
 
HATCHETCommented:
vbvpg,

Do you make a practice of having other programmers write your programs for you?  Is this a school assignment?  

Try posting QUESTIONS, not requests for full working program code.

HATCHET
0
 
spennerCommented:
Try looking at the extended file dialogs example at the ccrp home page
http://www.mvps.org/ccrp/

The tool is at
http://www.mvps.org/ccrp/controls/ccrpfiledlg.htm
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
parduzCommented:
1st: excuse my bad english, i'm italian :-(

2nd: I've tryed to make an app similar to your problem, but with a different approach:
I have the filelist on the left, and doubleclicking a image file i fill one of the twelwe imagebox i have on the right, using a hidden picbox to read the original size of the image, reducing the  major dimension to 100 and calculating the other dimension, to right scale the imagebox.
After this, i can reorder, move, copy or rename the files loaded in the imageboxes.

If you need the thumbs of all files (like ThumbsPlus), the problems are various:
How scroll the "Thumbs windows" at reasonable speed? (this is the reason that i have only 12 thumbs)
How save the thumbs?
i think that save a bmp of each thumbs can be a solution.
Maybe you can "group" your bmp saved files in a unique big file, reading the binary data from each bmp file, and attaching them to a big file, marking, on a text file, the start and the ending position of each thumb.
I hope you can understand me.
parduz

0
 
chabaudCommented:
Before any else comment, where are the 300 points ?
0
 
xer_softCommented:
This is a joke....
0
 
bruintjeCommented:
well if its is, it's quite educating to me..............:O))))
0
 
vbvpgAuthor Commented:

To those who question my legitimacy,

I do feel ANY obligation to explain my intentions nor
sould anyone have the right to do so except for the personel
of Experts Exchange themselves.

I shall also ask you all, to Ignore this question as I have found
my answer.

To those interested,
I decided to use the ListView example from VBNet to display
the images.
http://www.mvps.org/vbnet/code/comctl/lvdemo4.htm
The example shows how to add the 16x16 icon of a file.

I replaced that code with the LoadPicture event.




0
 
bruintjeCommented:
Great, and thanks for your comment, if there's is an answer they can store this as an PAQ for free and everyone to look at..and learn from..
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now