Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The thumbnail quality on my image control is what I want to save.

Status
Not open for further replies.

sfr10000

Programmer
May 22, 2006
12
0
0
DO
I have tried Calvin Hsia's and Ceasar Chalom's GDI+ code to pre-create thumbnails, however, the images appear severely out of focus. When my thumbnail size photo is displayed on my form in the image control, the quality is very acceptable. I have tried useing "savetofile" after my photo is displayed on my form, but I get an error message, "cannot find savetofile". The code I am trying is as follows:

ppath = "photos\"
pname = TRIM(photodir.picname)
thisform.image1.Picture[1] = ppath + pname
set Classlib To Home()+"ffc/_gdiplus"
cfilename = TRIM(photodir.picpath) + TRIM(photodir.picname)
lcDestination = "thumbnails\" + JUSTSTEM(cfilename)+".jpeg"
othumb = thisform.image1
othumb.SaveToFile(lcDestination, "image/jpeg")

Any ideas ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top