set Metadata in image

forgottensoul

Member
Joined
Nov 16, 2004
Messages
17
I have been able to read existing Metadata embedded in images via C# using PropertyItems which is readonly. I have been unable to find a way to add or alter the metadata that might be missing. For example I have some scanned images without the DateTime metaData.

How do you add to Metadata to a image?
 
Last edited by a moderator:
Thank you for the link. I will have to take a look at it closer.

To give a bit more background the following is what the MSDN site has on "metadata"
Imaging Overview
Some image files contain metadata that describes the content or the characteristics of the file. For example, most digital cameras create images that contain metadata about the make and model of the camera used to capture the image.
All of that information I can pull out of the images taken with my Digital Camera. Windows also displays in Explorier the "DateTime" of when the picture was taken. This information is what I would like to add to all my scanned pictures. Right now I have an XML file that contains that data. It would be nice to populate it in the pictures so it will go with the picture.

Since the original post, it appears that .net 3.0 might solve my problems. I found:
BitmapMetadata Class
in namespace system.windows.media
which states on MSDN as:
Provides support for reading and writing metadata to and from a bitmap image.
If I find a solution I shall post it here. The Imaging overview page has some code which might work too. Now I have 2 things to look at. :)

Thank you for your time
 
Back
Top