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

 

Reframe and Resize all Open Images
Function
Adjusts the frame and content size of all open images, to maximise their view.
Version
version:20210628, v1.0
Author
D. R. G. Mitchell
Acknowledgements
Thanks to Dr Ningyan Chen for suggesting this script.
Comments

Images imported from GMS 3 into GMS 2, or potentially moved between instances of GMS with different monitor sizes, can have white space around their content - ie the frame is larger than the content. This script will reframe and resize all open images to maximise them in the view.

 

System Requirements
Tested on GMS 2.32, but should work on all versions of GMS.
Known Issues

 

Supported
Yes.
Included Files
Main script.
Source Code

see attached script