

// Script function: Convert file to TIFF file format

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


Image GlobalSinoImage
String MyFileName
GlobalSinoImage.GetFrontImage()
If (!GlobalSinoImage.ImageIsValid()) Exit(0)
GlobalSinoImage.SetZoom(1) 
If (!SaveAsDialog("Please select folder to save the converted image", "EM Image", MyFileName)) Exit(0)
GlobalSinoImage.SaveAsTiff(MyFileName) 
