SAOTk
Frame Magnifier Commandscommands
magnifier magnifier graphics magnifier cursor magnifier mode magnifier update magnifier zoom magnifier
Control and define the magnifier for this frame widget. In the second form, the existing magnifier widget specified is assigned to this frame widget. When the update command is executed, the frame widget will calulate the proper image to be displayed and will automatically notified the named magnifier widget.
Syntax: magnifer yes no # activate or deactivate current magnifier
magnifer string integer integer # assign a particular magnifier widget to this frame
Example: magnifier on
magnifier mymagnifier 128 128magnifier graphics
Specify if markers and crosshair appear in the current magnifier.
Syntax: magnifer graphics yes no
Example: magnifier graphics yesmagnifier cursor
Specify if the pixel cursor appears in the current magnifier.
Syntax: magnifer cursor yes no
Example: magnifier cursor yesmagnifier mode
Specify the algorithm to be used in calculating the magnifier image. The algorithm FAST can only be used for power of two magnification and results are poor for angles not of 0, 90, 270 degrees. Use the algorithm ACCURATE unless performance is unacceptable.
Syntax: magnifer mode [fast | accurate]
Example: magnifier mode accurate
magnifier update
Update the current magnifier based on the current cursor position. The coordinates are in canvas coordinates.
Syntax: magnifer update numeric numeric
Example: magnifier update 100 200magnifier zoom
Set the current zoom value for the magnifier. For algorithm ACCURATE, all values, including non-integer values are valid. For algorithm FAST, only values of power of two are valid.
Syntax: magnifer zoom numeric
Example: magnifier zoom 4