This method displays a magnifier in the ImageKit Control. The size of the magnifier is determined by the Magnifier.Height and Magnifier.Width properties

[Visual Basic]   [ Boolean = ]imagekitcontrolname.Magnifier.Show(Show As Boolean, x As Long, y As Long, Scale As Double)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetMagnifier().Show(BOOL Show, long x, long y, double Scale)
[VB.NET]   [ Boolean = ]imagekitcontrolname.Magnifier.Show(Show As Boolean, x As Integer, y As Integer, Scale As Double)
[C#.NET]   [ bool = ]imagekitcontrolname.Magnifier.Show(bool Show, int x, int y, double Scale)

Parameters

Value Explanation
Show 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 (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

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

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

The magnifier will be displayed on the image when that image's ShowInMagnifier property is set to True (For the base image, see the ShowInMagnifier property. For layer images see the Layer.ShowInMagnifier property).

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 be set then the layer images are not displayed.


Sample code for displaying the magnifier:

Visual Basic

    Private Sub ImageKit1_MouseMoveImage(ByVal Button As Integer, ByVal Shift As Integer, ByVal OriginX As Long, ByVal OriginY As Long, ByVal Left As Long,
    ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal ScaleWidth As Double, ByVal ScaleHeight As Double, ByVal x As Long, ByVal y As Long)

       'Magnifier

       ImageKit1.Magnifier.Width = 100

       ImageKit1.Magnifier.Height = 100

       ImageKit1.Magnifier.Show True, x, y, 2

    End Sub

 

The ImageKit10 ActiveX is a product created by Newtone Corporation