Image painting
Posted: Mon Feb 10, 2020 1:36 pm
My project involves showing and hiding the annotation viewer, and changing the focussed image when the viewer isn't visible. If I change the focused index and then show the viewer, the old image displays for a second before the new one is painted.
Is there a way to only draw the new image? I'm using the below method to change the image, and then hide one control and show the viewer.
Is there a way to only draw the new image? I'm using the below method to change the image, and then hide one control and show the viewer.
Code: Select all
private void ReloadImage(int index, ImageCollection images)
{
this.annotationViewer.Images = images;
this.annotationViewer.FocusedIndex = index;
this.axWindowsMediaPlayer.Visible = false;
this.annotationViewer.Visible = true;
}