首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2012-01-18 
如何获取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;//获取高 

热点排行