Solved

Making Thumbnails

Posted on 2003-10-29
6
197 Views
Last Modified: 2010-05-03
Sorry for the lack of points experts, it's all I had left. Many thanks for looking into this though! I was wondering how I would make a program in VB that generated a thumbnail from an existing picture. (Using it's filename to locate it) Thanks a ton!
0
Comment
Question by:momonja
6 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 33 total points
Comment Utility
0
 

Author Comment

by:momonja
Comment Utility
that example is good, but I want to be able to export the thumbnails into a jpg, bmp, gif, etc. I don't want them to be in some treeview control.
0
 

Assisted Solution

by:Boyidiot
Boyidiot earned 32 total points
Comment Utility
Option Explicit
Dim Temp As StdPicture,Wid As Single, Hei As Single

Private Sub cmdOpen_Click()
CommonDialog1.ShowOpen

Set Temp = LoadPicture(CommonDialog1.FileName)
Wid = ScaleX(Temp.Width, vbHimetric, picThumbnail.ScaleMode)
Hei = ScaleY(Temp.Height, vbHimetric, picThumbnail.ScaleMode)

picThumbnail.PaintPicture Temp, 0, 0, picThumbnail.ScaleWidth, picThumbnail.ScaleHeight, 0, 0, Wid, Hei

End Sub

Hope this helps
boyidiot
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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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