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
private void ThumbnailViewer_FocusedIndexChanged(object sender, FocusedIndexChangedEventArgs e)
{
ToolbarControl.SetPageLabel(e.FocusedIndex + 1);
_thumbnailViewer.FocusedIndex = e.FocusedIndex;
_thumbnailViewer.SelectedIndices.Clear();
_thumbnailViewer.SelectedIndices.Add(e.FocusedIndex);
}
Thanks/// <summary>
/// Image loading in viewer is finished.
/// </summary>
private void annotationViewer1_ImageLoaded(object sender, ImageLoadedEventArgs e)
{
_imageLoadingTime = DateTime.Now.Subtract(_imageLoadingStartTime);
progressBarImageLoading.Visible = false;
toolStripStatusLabelLoadingImage.Visible = false;
//
VintasoftImage image = annotationViewer1.Image;
// show error message if not critical error occurs during image loading
string imageLoadingErrorString = "";
if (image.LoadingError)
imageLoadingErrorString = string.Format("[{0}] ", image.LoadingErrorString);
// show information about the image
imageInfoStatusLabel.Text = string.Format("{0} Width={1}; Height={2}; PixelFormat={3}; Resolution={4}", imageLoadingErrorString, image.Width, image.Height, image.PixelFormat, image.Resolution);
// if image loading time more than 0
if (_imageLoadingTime != TimeSpan.Zero)
// show information about image loading time
imageInfoStatusLabel.Text = string.Format("[Loading time: {0}ms] {1}", _imageLoadingTime.TotalMilliseconds, imageInfoStatusLabel.Text);
// if image has annotations
if (image.Metadata.AnnotationsFormat != AnnotationsFormat.None)
// show information about format of annotations
imageInfoStatusLabel.Text = string.Format("[AnnotationsFormat: {0}] {1}", image.Metadata.AnnotationsFormat, imageInfoStatusLabel.Text);
// update the UI
UpdateUI();
// Select the first page.
thumbnailViewer1.SelectedIndices.Clear();
thumbnailViewer1.SelectedIndices.Add(0);
thumbnailViewer1.Invalidate();
}
Can you please point us to example where selecting multiple thumbnail images has been fixed in the 9.1 version?The thumbnail viewer behaviour is impoved if thumbnail selection is changed programmatically.