Represents a LEADTOOLS magnify glass object for "zooming in" a portion of an image.
public class MagnifyGlass : System.Windows.DependencyObject
Public Class MagnifyGlass
Inherits System.Windows.DependencyObject
public ref class MagnifyGlass : public System.Windows.DependencyObject
The MagnifyGlass is used to "zoom in" a portion of an image displayed in the ImageViewer or RasterImageViewer controls when the controls InteractiveMode is set to InteractiveMode.MagnifyGlass.
When the user clicks inside the control associated with the MagnifyGlass object, the portion of the image around the mouse cursor will be zoomed in. While still clicking down, if the user moves the mouse cursor, inside the control, the zoomed in portion will change according to the mouse position showing the current portion under the cursor.
Imports Leadtools.Windows.Controls
Dim magnifyGlass As MagnifyGlass = New MagnifyGlass()
using Leadtools.Help;
using Leadtools.Windows.Controls;
MagnifyGlass magnifyGlass = new MagnifyGlass();
using Leadtools.Help;
using Leadtools.Windows.Controls;
MagnifyGlass magnifyGlass = new MagnifyGlass();
Imports Leadtools.Windows.Controls
Dim magnifyGlass As MagnifyGlass = New MagnifyGlass()
<Window x:Class="WPFSamples.MagnifyGlass"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Leadtools_Windows_Controls="clr-namespace:Leadtools.Windows.Controls;assembly=Leadtools.Windows.Controls"
Title="MagnifyGlass" Height="600" Width="800">
<DockPanel>
<Leadtools_Windows_Controls:ImageViewer x:Name="Viewer" Source="file:///c:\users\Public\Documents\LEADTOOLS Images\cannon.jpg"
Width="400" Height="400" InteractiveMode="MagnifyGlass">
<Leadtools_Windows_Controls:ImageViewer.MagnifyGlass>
<Leadtools_Windows_Controls:MagnifyGlass
Shape="RoundRectangle"
RoundRectangleRadius="15,15"
BorderBrush="DarkBlue"
BorderThickness="10"
Crosshair="Fine"
CrosshairBrush="Red"
CrosshairThickness="5"
Background="DarkGreen"
ScaleFactor="1.5">
</Leadtools_Windows_Controls:MagnifyGlass>
</Leadtools_Windows_Controls:ImageViewer.MagnifyGlass>
</Leadtools_Windows_Controls:ImageViewer>
</DockPanel>
</Window>
Products |
Support |
Feedback: MagnifyGlass Class - Leadtools.Windows.Controls |
Introduction |
Help Version 19.0.2017.3.22
|
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.