Page 1 of 1

Image painting

Posted: Mon Feb 10, 2020 1:36 pm
by missionRoom
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.

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;
}

Re: Image painting

Posted: Mon Feb 10, 2020 2:40 pm
by Alex
Hello,

Please send us (to support@vintasoft.com) a small project, which allows to reproduce your problem. We will analyze the problem and will suggest you the best solution.

Best regards, Alexander

Re: Image painting

Posted: Mon Feb 10, 2020 4:03 pm
by missionRoom
Sent a project to support. Thanks, Alexander

Re: Image painting

Posted: Tue Feb 11, 2020 2:18 pm
by Alex
Hi,
missionRoom wrote: Mon Feb 10, 2020 4:03 pm Sent a project to support.
Thank you for the project. We reproduced the problem, improved your code and now project works as expected. Please use changed project and let me know if you will have any question or problem.

Best regards, Alexander