|
In AID Language Verbs
Three new verbs support the image windows concept. They are 1)open iwindow, 2) close iwindow and 3) clear iwindow. The new verbs showsnip, rotatei, and pan are all image window based. Format Consistent With Expectations The format (hopefully self descriptive) of these verbs is listed below so that AID Language programmers can envision how the image window concept can help image entry, reject/repair, etc. Open Iwindow Verb Easy to Use 1)open iwindow mywin at box. This verb has "open", "iwindow", and "at" as reserved words. "Mywin" is a variable or a constant with mywin having a value from one to ten. "Box" is a variable with the description of the window on the current CRT screen in pixels in the familiar format (left, top, right, bottom). Clear Iwindow Also Easy to Use 2)clear iwindow mywin. This verb has "clear" and "iwindow" as reserved words. "Mywin" refers to an open iwindow and can range from 1 to ten, provided the iwindow is open. Close Iwindow Last of Three Easy Verbs 3)close iwindow mywin. This verb has "close" and "iwindow" as reserved words. As above, "mywin" refers to an open iwindow and can range from one to ten, provided the iwindow is open. Showsnip Verb Has Long Statement 4)showsnip box of image page pagenum in iwindow mywin with zoom gives result. This verb has "showsnip", "in", "iwindow", and "gives" as general reserved words. The "of", "page", and "with" are reserved words inside the showsnip verb. "Box" is a variable which describes a particular piece of an image in pixels in the format as discussed above (left, top, right, bottom). "Mywin" refers to one of up to ten open iwindows. "Image" refers to a variable with a full image name path. "Pagenum" is a page number for multipage tiffs. "Zoom" is the standard Unibase Imaging -9 to +9 zoom factor for original image. "Result" is a response from the verb with a detailed error number if the verb has a problem executing. Rotatei Verb Allows Image Rotation 5)rotatei mywin direction. This verb use "rotatei" as a reserved word. "Mywin" is a variable or constant as described above indicating which window is being referenced. "Direction" is one of three specific descriptions for the rotation -- cw for clockwise rotation, ccw for counterclockwise rotation, and usd for up side down rotation. Pan Verb Allows Easy User Image Moves 6)pan mywin pandirection amount. "Pan" is a reserved word to tell to move the image displayed. "Mywin" is a variable or constant as described above. "Pandirection" is a direction in which the iwindow is moved over the image. It is either right, left, up, or down. "Editkey" Gives Instant Image Moves Using the new editkey, an operator can jump to AID edit code at any time and the AID programmer can request instructions for which window, and what to do with it in a standardized external subroutine.
|