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
try
{
if (multipage)
// get image encoder for multi page image file
encoder = GetMultipageEncoder(_sourceFilename, true, saveAndSwitchSource);
// if single image must be saved
else
// get image encoder for single page image file
encoder = GetEncoder(_sourceFilename, true);
// if encoder is found
if (encoder != null)
{
encoder.SaveAndSwitchSource = saveAndSwitchSource;
AnnotationViewer.Images.SaveSync(_sourceFilename, encoder);
}
else
{
MessageBox.Show("Image encoder is not found.");
}
}
catch (Exception ex)
{
MessageBox.Show("Error while saving");
}