VintaSoft Annotation .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions
EncoderBase encoder = null; ... //do some work to instantiate encoder as PdfEncoder or TiffEncoder and set compressionThis works for single images:
VintasoftImage img = imageViewer1.Images[i] as VintasoftImage; img.Save(fullPath, encoder);But it doesn't for collections:
imageViewer1.Images.Save(fullPath, encoder);- won't compile, method signature not recognised despite it being valid as far as Intellisense is concerned.
imageViewer1.Images.Save(fullPath, (PdfEncoder)encoder);Why is this the case?
imageViewer1.Images.Save(fullPath, (TiffEncoder)encoder);But this code for a single image doesn't save annotations:
VintasoftImage img = imageViewer1.Images[i] as VintasoftImage; img.Save(fullPath, encoder);Thanks.
Why do you have to cast the BaseEncoder when saving the ImageCollection but you don't have to cast the BaseEncoder when you save the VintaSoft image, despite them having the same method signatures?I'm not sure that I have understood the question, please explain.
Why is it that when you save a multipage Tiff via the ImageCollection, the annotations are ALWAYS saved, but when you save the VintasoftImage they are not - you have to save them separately?ImageCollection can be linked with AnnotationController and this allows to use images with annotations. Separate VintasoftImage object cannot be linked with annotations.
Also, is there any way you can save an annotated multipage Tiff as separate XMP and TIF files?You can save annotation collection as XMP file using the Save method of the AnnotationCollection class.