LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

MagnifyGlass Class

Example 





Members 
Represents a LEADTOOLS magnify glass object for "zooming in" a portion of an image. .NET support Silverlight support
Object Model
MagnifyGlass Class
Syntax
public class MagnifyGlass : System.Windows.DependencyObject 
'Declaration
 
Public Class MagnifyGlass 
   Inherits System.Windows.DependencyObject
'Usage
 
Dim instance As MagnifyGlass
public sealed class MagnifyGlass : System.Windows.DependencyObject 
function Leadtools.Windows.Controls.MagnifyGlass()
public ref class MagnifyGlass : public System.Windows.DependencyObject 
Remarks

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.

Example
Copy CodeCopy Code  
Dim magnifyGlass As MagnifyGlass = New MagnifyGlass()
MagnifyGlass magnifyGlass = new MagnifyGlass();
MagnifyGlass magnifyGlass = new MagnifyGlass();
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>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MagnifyGlass Members
Leadtools.Windows.Controls Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.