public virtual void BeginUpdate()
function Leadtools.Controls.ImageViewer.BeginUpdate()
The BeginUpdate method will cause the control to not update the image viewing transformation or invalidate the display when any changes to the control's properties or the image is applied. When the user calls the EndUpdate method, the viewer will then update the transformation and invalidate the display to show all the changes that have been made.
For better visual results and for speed efficiency, it is recommended you surround multiple calls that will cause a render or transformation change between BeginUpdate and EndUpdate.
Calls to BeginUpdate and EndUpdate are accumulative. Each call to BeginUpdate must be matched with a corresponding call to EndUpdate or else updates to the transform won't be applied.
To determine if the control will currently update the transform and invalidate, use CanUpdate.
[TestMethod] public void BeginUpdateExample() { // Disable updating _viewer.BeginUpdate(); // Flip _viewer.Flip = true; // Zoom _viewer.Zoom(ImageViewerSizeMode.None, 2, _viewer.ImageControlCenter); // Scroll _viewer.ScrollBy(new Point(100, 100)); // Show the results _viewer.EndUpdate(); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2