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:
You can add the ImageViewer class to Visual Studio Toolbox by right clicking on it and selecting Choose Items and then browsing to Leadtools.Controls.WinForms.dll. You can then drag and drop the ImageViewer from the toolbox to your form
Adding the reference to Leadtools.Controls.WinForms.dll directly to your project and creating the control manually:
public partial class Form1 : Form
{
protected override void OnLoad(EventArgs e)
{
// Create a new image viewer instance
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:\Users\Public\Documents\LEADTOOLS Images\Ocr1.tif");
base.OnLoad(e);
}
}
Products |
Support |
Feedback: Using Image Viewer with Windows.Forms |
Introduction |
Help Version 19.0.2017.6.21
|
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.