如何从asp.net C中的图像中获取细节# [英] how to get details from an image in asp.net C#
本文介绍了如何从asp.net C中的图像中获取细节#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从asp.net c中的图像中获取这些细节#
<img src =http://1.bp.blogspot.com/-JcXudm3sXoo/U5rhoFKDKvI/AAAAAAAACXY/TMle1lG6LBs/s1600/Untitled.png\"alt =sd width =597height =302>
解决方案
它被称为EXIF数据,最简单的方法是使用库: ExifLib - 适用于.NET 2.0+的快速Exif数据提取器 [ ^ ]有效。
只有麻烦,你必须将它上传到服务器(如果这是ASP.NET for为了在C#中使用它。
你可以得到图像尺寸。请参阅获取图片维度c# [ ^ ]。
然后文件名和日期,您可以在上传时获得。您必须从用户那里获取输入的相机详细信息。
请参阅: http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapmetadata.getquery%28v=vs .110%29.aspx [ ^ ]。
-SA
How to get these details from an image in asp.net c#
<img src="http://1.bp.blogspot.com/-JcXudm3sXoo/U5rhoFKDKvI/AAAAAAAACXY/TMle1lG6LBs/s1600/Untitled.png" alt="sd" width="597" height="302">
解决方案
It's called EXIF data, and the easiest way is to use a library: ExifLib - A Fast Exif Data Extractor for .NET 2.0+[^] works.
Only hassle is that you have to upload it to the server (if this is ASP.NET for real) in order to use it from C#.
You can get the image dimensions. See get image dimension c#[^].
Then file name and dates, you can get while uploading. Camera details you have to take input from the user.
Please see: http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapmetadata.getquery%28v=vs.110%29.aspx[^].
—SA
这篇关于如何从asp.net C中的图像中获取细节#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文