When I insert a key into the dictionary with:
ImageEn1.IO.Params.dict.Insert('MyKey', 'Some text');
ImageEn1.IO.SaveToFileJP2('D:\MyImage.jp2');
then I can retrieve it with:
if ImageEn1.IO.Params.dict.HasKey('MyKey', True) then
CodeSite.Send('JP2 XMP Key', ImageEn1.IO.Params.dict.GetString('MyKey', True));
But it seems the dictionary is not saved into the file with SaveToFileJP2. Because when I restart the program and reload the JP2 file, the XMP key cannot be retrieved anymore as above.
So how can the XMP key be saved in the file?