Using Image Viewer with Windows.Forms (original) (raw)

Assembly: Leadtools.Controls.WinForms.dll

Namespace: Leadtools.Controls

The LEADTOOLS ImageViewer class is a standard .NET class that derives from System.Windows.Forms.Control and can be used just like any other control in your Windows Forms application.

For example:

ImageViewer imageViewer = new ImageViewer();
// Set some properties
imageViewer.Dock = DockStyle.Fill;
// Add it to the form
this.Controls.Add(imageViewer);
// Load an image into it
imageViewer.ImageUrl = new Uri(@"C:\LEADTOOLS22\Resources\Images\Ocr1.tif");

base.OnLoad(e);
}
}