在C#中将标签插入位图图像 [英] insert a Tag to a bitmap image in c#
本文介绍了在C#中将标签插入位图图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
C#3.5 .Net Visual Studio 2010
可以使用任何方法将元数据(标签)插入c#中的位图图像,以(在保存后)使用Windows 7提供的搜索"选项查找图像.
像Windows 7一样,添加标签选项. 此处的示例 [
C# 3.5 .Net Visual Studio 2010
It is there any way to insert meta-data (Tag) to a bitmap image in c# with the purpose of (after saving it) finding the image with the Search option Windows 7 provide.
Like Windows 7 add tag option. Example here[^]
推荐答案
看看此 [^ ] VSJ的文章.
我是通过搜索 .net位图元数据发现的,因此,如果该文章没有帮助,请尝试一下其他一些命中项目.
Take a look at this[^] Article from VSJ.
I found this by searching on .net bitmap metadata, so if that article doesn''t help, give it a go and try some of the other hits.
你好,
看看这个 stackoverflow答案 [ ^ ]和此博客文章 [ ^ ],介绍如何使用InPlaceBitmapMetadataWriter
写入元数据.
也此处 [
Hello there,
Take a look at this stackoverflow answer[^] and this blog post[^] on how to useInPlaceBitmapMetadataWriter
to write to metadata.
Also here[^] for the write path/s for System.Keywords photo metadata (tags).
感谢信息 Henry Minute
不错的信息,我读完了所有...但是它太旧了,我正在使用C#3.5 .Net Windows窗体
以及有关WPF的好信息(我以前从未使用过的女巫...感谢这篇文章,我第一次看到它看起来很酷)
引用
当然,您可以选择创建WPF应用程序,而不必考虑Windows窗体,但是现有的应用程序又如何呢?"
我有这个代码巫婆,我想我在这里发现了一些...
事实是阅读并显示元数据完全没问题
Thanks for the info Henry Minute
Nice info I read it all ... But its too old I am working in C# 3.5 .Net Windows form
And were the good info comes its about WPF ( witch i have never used before... first time i see it thanks to this article it looks cool)
Quote
"Of course you could just opt to create a WPF application and forget about Windows Forms, but what about existing applications?"
i have this code witch i think i found here some were ...
the thing is that reading and showing that metadata its no problem
private void ImageInfo_Load(object sender, EventArgs e)
{
FileInfo fileInfo = new FileInfo(imageHandler.BitmapPath);
lblImageName.Text = fileInfo.Name.Replace(fileInfo.Extension, "");
lblImageExtension.Text = fileInfo.Extension;
string loc = fileInfo.DirectoryName;
if (loc.Length > 50)
loc = loc.Substring(0, 15) + "..." + loc.Substring(loc.LastIndexOf("\\"));
lblImageLocation.Text = loc;
lblImageDimension.Text = imageHandler.CurrentBitmap.Width + " x " + imageHandler.CurrentBitmap.Height;
lblImageSize.Text = (fileInfo.Length / 1024.0).ToString("0.0") + " KB";
lblImageCreatedOn.Text = fileInfo.CreationTime.ToString("dddd MMMM dd, yyyy");
}
问题是如何出于上述目的编写TAG.
感谢您的时间和帮助
The problem is how to write the TAG with the purpose mentioned above.
Thanks for your Time and kindness
这篇关于在C#中将标签插入位图图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文