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

Making Thumbnails

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
momonja
Asked:
momonja
2 Solutions
 
vinnyd79Commented:
0
 
momonjaAuthor Commented:
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
 
BoyidiotCommented:
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

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.

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