Stops the viewer from being updated if any change is applied. This is useful to increase the control's speed efficiency.
public virtual void BeginUpdate()
Public Overridable Sub BeginUpdate()
public virtual void BeginUpdate()
- (void)beginUpdate
public 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.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Controls;
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();
}
Products |
Support |
Feedback: BeginUpdate Method - OLeadtools.Controls |
Introduction |
Help Version 19.0.2017.3.23
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.