System.Drawing.Image img = System.Drawing.Image.FromFile(Commen.CommenFunction.Path + picPath);//找到物理地址 pic.Width = img.Width; pic.Height = img.Height;