Solved

Image Thumbnailer {300 points}

Posted on 1999-01-12
9
194 Views
Last Modified: 2010-05-03
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
Comment
Question by:vbvpg
9 Comments
 
LVL 4

Expert Comment

by:chabaud
ID: 1455675
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
 
LVL 3

Expert Comment

by:HATCHET
ID: 1455676
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
 
LVL 2

Expert Comment

by:spenner
ID: 1455677
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
 

Expert Comment

by:parduz
ID: 1455678
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 4

Expert Comment

by:chabaud
ID: 1455679
Before any else comment, where are the 300 points ?
0
 
LVL 1

Expert Comment

by:xer_soft
ID: 1455680
This is a joke....
0
 
LVL 44

Expert Comment

by:bruintje
ID: 1455681
well if its is, it's quite educating to me..............:O))))
0
 

Author Comment

by:vbvpg
ID: 1455682

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
 
LVL 44

Accepted Solution

by:
bruintje earned 0 total points
ID: 1455683
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now