|
Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.10
|
| Leadtools.WinForms Namespace > RasterPictureBox Class : BeginUpdate Method |
public virtual void BeginUpdate()
'Declaration Public Overridable Sub BeginUpdate()
'Usage Dim instance As RasterPictureBox instance.BeginUpdate()
public: virtual void BeginUpdate();
This sample zooms out on the image, keeping it centered. The resulting transform is displayed in the console.
Copy Code
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 }