

// 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
GlobalSinoImage := GetFrontImage()
 
number EMx,EMy
GlobalSinoImage.GetSize(EMx,EMy)
if ( 0 != EMx%4 )
   Throw( "The image width is not an integer multiplication of 4." )
  
if ( 0 != EMy%4 )
   Throw( "The image height is not an integer multiplication of 4." )
 
GlobalSinoImage.ShowImage()