Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

Function: Zoom to New Size
Function
This function will zoom the passed in image to the size specified and centre it within the image frame.
Version
version:141230, v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments

This function has a somewhat similar effect to that achieved by clicking on the square button (top right of each image frame), except that it allows you to specify a screen size. If the image is initially zoomed or offset within the image frame it is recentred and expanded to fill the frame. The size entered is the x dimension, with the y dimension is scalled appropriately.

System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
-
Supported
Yes
Included Files
Main script file.
Source Code

See attached script file.