Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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[^]
Posted

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.
 
Share this answer
 
Hello there,

Take a look at this stackoverflow answer[^] and this blog post[^] on how to use InPlaceBitmapMetadataWriter to write to metadata.

Also here[^] for the write path/s for System.Keywords photo metadata (tags).
 
Share this answer
 
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
C#
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");

}



The problem is how to write the TAG with the purpose mentioned above.
Thanks for your Time and kindness
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900