Dim tpath As String = "C:\data\毕业照片" For Each File As String In FileSys.GetFiles(tpath) Dim img As image = getImage(file) Dim bmp As new bitmap(img, 160, 120 * (img.height / img.width)) bmp.save("c:\data\缩略图\" & filesys.GetName(file)) bmp.Dispose Next