VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
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);
I read some stuff about SetSaveAnnotaions(true), but that doesnt seem to exist anymore. Anyone here who might be able to help?ImageCollection images = new ImageCollection();
images.Add("test.tif");
AnnotationDataController annoDataController = new AnnotationDataController(images);
// load annotations into memory - after this step encoder will be able to get "unpacked" annotations
// from memory and save annotations to the necessary format
AnnotationDataCollection annoDataCollection = annoDataController[0];
JpegEncoder jpegEncoder = new JpegEncoder();
jpegEncoder.AnnotationsFormat = AnnotationsFormat.VintasoftXmp;
images[0].Save("test.jpg", jpegEncoder);
Best regards, Alexander
WpfAnnotationViewController wavc = new WpfAnnotationViewController(annoDataController); wavc.BurnAnnotationCollectionOnImage(images[0]);Nevermind, I got it using the above code. Thanks for the good support!