EnablePaint example for Visual Basic

   Dim RasterProc As New LEADRasterProcess
   ' disable the paint
   LEADRasterView1.EnablePaint = False
   ' do whatever changes you want. The control will not repaint
   RasterProc.Size LEADRasterView1.Raster, LEADRasterView1.Raster.BitmapWidth * 2, _
                   LEADRasterView1.Raster.BitmapHeight * 2, RESIZE_BICUBIC
   ' re-enable the paint
   LEADRasterView1.EnablePaint = True
   ' call ForceRepaint because the control will not automatically repaint
   LEADRasterView1.ForceRepaint