Image pic=Image.FromFile(strFilePath); //strFilePath是该图片的绝对路径 int intWidth=pic.Width;//长度像素值 int intHeight=pic.Height;//高度像素值