I am currently evaluating the Imaging SDK for a project, and have encountered a problem. I load a Wang-annotated TIFF, which shows the annotations in the WPF demo just fine. And then I want to save it, baking in the annotations to the image. But when I open the saved jpg file, the annotations are not in it.
Code: Select all
VintasoftImage vsImage = new VintasoftImage(filename);
JpegEncoder je = new JpegEncoder();
je.Settings.CreateThumbnail = true;
je.Settings.AnnotationsFormat = AnnotationsFormat.VintasoftXmp | AnnotationsFormat.VintasoftBinary;
je.Settings.CopyExifMetadata = true;
je.Settings.CopyUnknownApplicationMetadata = true;
je.Settings.CreateThumbnail = false;
je.Settings.GenerateOptimalHuffmanTables = false;
je.Settings.Quality = 100;
je.Settings.SaveComments = true;
je.AnnotationsFormat = AnnotationsFormat.VintasoftXmp | AnnotationsFormat.VintasoftBinary;
string jpegName = String.Format("{0}.jpg", Path.GetFileNameWithoutExtension(filename));
vsImage.Save(jpegName, je);
Thanks in advance, much appreciated!