Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Image Thumbnailer {300 points}

Posted on 1999-01-12
9
Medium Priority
?
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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.

 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

715 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