Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Drawing
Public Sub RasterPictureBox_BeginUpdate(ByVal viewer As RasterPictureBox)
    viewer.BeginUpdate() ' suspend painting of the image
    viewer.SizeMode = RasterPictureBoxSizeMode.CenterImage
    viewer.UseDpi = False
    viewer.EndUpdate() ' start painting of the image
End Sub
             
   
     
            using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Drawing;
public void RasterPictureBox_BeginUpdate(RasterPictureBox viewer)
{
   viewer.BeginUpdate();  // suspend painting of the image 
   viewer.SizeMode = RasterPictureBoxSizeMode.CenterImage;
   viewer.UseDpi = false;
   viewer.EndUpdate(); // start painting of the image 
}