怎么获取jpg图的属性,要图的长和宽

如何获取jpg图的属性,要图的长和宽路径都知道的!RT[解决办法]C# codeImage imageImage.FromFile(path)//

如何获取jpg图的属性,要图的长和宽
路径都知道的!RT

[解决办法]

C# code
Image image=Image.FromFile(path);//获取图片,path为路径int width=image.Width;//获取宽int height=image.Height;//获取高