This method displays a magnifier in the ImageKit Control. The size of the magnifier is determined by the Height and Width properties.
[Visual Basic]
Public Function ShowMagnifier(Visible As Boolean, x As Long, y As Long, Scale As Double) As Boolean
[C#]
public bool ShowMagnifier(bool Visible, int x, int y, double Scale)

Parameters

Visible
     Sets the display of the magnifier window: True (nonzero) displays the magnifier, False (0) hides the magnifier

x, y
     Sets the location of the center of the magnifier (in pixels)

Scale
     Sets the magnification of the display in the magnifier (actual size display = 1.0)

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The ShowMagnifier method displays a magnifier in the ImageKit Control. The Height and Width properties determine the size of the magnifier and must be set.

When the Visible parameter = False, the x, y, and Scale parameter values are ignored.

The magnifier will be displayed on the image when that image's ShowImage property is set to True. The order in which images are displayed are: base image, layer images (from smallest to largest index).

Note that if the base image has not been set then the layer images are not displayed. The ToolTip property is set to the values other than LengthUnit.None, then the magnifier isn't displayed.

Example

Sample code for displaying the magnifier:

[Visual Basic.NET]
Private Sub ImageKit1_MouseMoveImage(ByVal sender As Object, ByVal e As Newtone.ImageKit.Win.ImageKit.MouseUpDownEventArgs) Handles ImageKit1.MouseMoveImage
  ImageKit1.Magnifier.Width = 100
  ImageKit1.Magnifier.Height = 100
  ImageKit1.Magnifier.Type = Newtone.ImageKit.Win.MagnifierType.RectangleMagnifier
  ImageKit1.Magnifier.Border = True
  ImageKit1.Magnifier.ShowMagnifier(True, e.X, e.Y, 2)
End Sub

[Visual C#.NET]
private void imageKit1_MouseMoveImage(object sender, Newtone.ImageKit.Win.MouseUpDownEventArgs e)
{
  imageKit1.Magnifier.Width = 100;
  imageKit1.Magnifier.Height = 100;
  imageKit1.Magnifier.Type = Newtone.ImageKit.Win.MagnifierType.EllipseMagnifier;
  imageKit1.Magnifier.Border = true;
  imageKit1.Magnifier.ShowMagnifier(true, e.X, e.Y, 2);
}

See Also

ImageKit.Magnifier Members | Newtone.ImageKit.Wpf.ImageKit

The ImageKit WPF is created by Newtone Corporation