Bitmap image = new Bitmap(Image.FromFile(fileName)); var data = System.Text.Encoding.UTF8.GetBytes("My comment"); PropertyItem propItem = image.GetPropertyItem(Convert.ToInt32(0x010E)); propItem.Len = data.Length; propItem.Value = data; image.SetPropertyItem(propItem);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)