/* init the image menu item states */
arg window

/* Set changed flag  Image Editor */
value=VpImgEdt(window, 'IMAGE', 'GETCHANGED')
if value==0 then
   /* Disable item MENU_FILE_SAVEIMAGE Menu Item */
   CALL VpItem window,'MENU_FILE_SAVEIMAGE','ENABLE'
else
   /* Enable item MENU_FILE_SAVEIMAGE Menu Item */
   CALL VpItem window,'MENU_FILE_SAVEIMAGE','DISABLE'

/* Get image attributes  Image Editor */
rc=VpImgEdt(window, 'IMAGE', 'GETBMPATTRIBUTES')
PARSE VAR rc x y numcolors
