读取C#扩展的图片属性 [英] Read extended image properties in c#

查看:279
本文介绍了读取C#扩展的图片属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到磁盘上的图像的高度/宽度不打开它,如果可能的话(由于性能原因)。

I would like to find the height/width of an image on disk without opening it, if possible (for performance reasons).

在Windows属性窗格的图像包含这样的宽度,高度,位深度等,这使我相信它在存储文件元数据的地方的信息。 ?我怎样才能访问这些信息。

The Windows properties pane for images contains information like width, height, bit depth, etc., which leads me to believe that it is storing metadata on the file somewhere. How can I access this information?

推荐答案

有关于如何读取图像,如EXIF信息的一些计算器的问题: http://stackoverflow.com/questions/ 58649 /如何到获得最EXIF数据 - 从 - 使用-C A-文件

There are some stackoverflow questions on how to read the EXIF information from images, such as: http://stackoverflow.com/questions/58649/how-to-get-the-exif-data-from-a-file-using-c

这篇关于读取C#扩展的图片属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆