摘要:
stringfile=files[i];Imageimg=Image.FromFile(file);intwidth=img.Width;intheight=img.Height;if(width>height){width=800;height=width*img.Height/img.Width;}else{height=800;width=height*img.Width/img.Height;}Bitmapbt=newBitmap(width,height);Graphicsg=Graphics.FromImage(bt);g.DrawImage(img,0,0,width,he 阅读全文