Available in the LEADTOOLS Imaging toolkit. |
SetMagGlassPos method (Main Control)
Visual Basic
Example
Visual
C++ 4.0 Example
Syntax short SetMagGlassPos (float fXPos, float fYPos);
Overview: Refer to Using the Magnifying Glass
Remarks
Moves the Magnifying Glass to the specified position in the screen.
This method is used to move the magnifying glass to the position, specified by (fXPos, fYPos), on the screen. Since the user is responsible for displaying the magnifying glass and moving it on the screen in a manual update, this method is used in conjunction with ShowMagGlass method.
If the magnifying glass is displayed, this method will move the magnifying glass to the specified (fXPos, fYPos) position and it will be displayed there. If the magnifying glass was hidden, this method will move the magnifying glass to the specified position without displaying it.
This method can be called in the Main Control’s MouseMove event to control the position of the Magnifying Glass.
The unit of measure is determined by the ScaleMode property.
Note: This method can be used only if the MAGGLASS_MANUAL_UPDATE flag was set in the MagGlassFlags property.
See Also
Elements: MagGlassFlags property, MagGlassCursor event, StartMagGlass method, StopMagGlass method, ShowMagGlass method, UpdateMagGlassFromHandle method
Topics: Raster Images: Displaying Images