? tab(-10, AG_IMAGE); opcode; parameters; chr(127);
Note: as with most other AG_xxx functions, the XCALL front-end is preferable if available. In this case, that would be AUI_IMAGE, which see for definitions of the parameters—including status—referenced below.
AG_IMAGE (35) provides access to A-Shell's image processing functions. Use the following syntax:
? tab(-10,AG_IMAGE); IMGOP_LOAD; ","; handle; ","; fspec; ","; chr(127);
? tab(-10,AG_IMAGE); IMGOP_CLOSE; ","; handle; chr(127);
? tab(-10,AG_IMAGE); IMGOP_DISPLAY; ","; handle; ","; srow; ","; scol; ","; erow; ","; ecol; ","; flags; chr(127);
? tab(-10,AG_IMAGE); IMGOP_LOADDISP; ","; handle; ","; "; srow; ","; scol; ","; erow; ","; ecol; ","; flags; ","; fspec; chr(127);
? tab(-10,AG_IMAGE); IMGOP_INFO; ","; handle; ","; fspec; ","; chr(127);
? tab(-10,AG_IMAGE); IMGOP_HIDE; ","; handle; chr(127);
? tab(-10,AG_IMAGE); IMGOP_ACQUIRE; ","; handle; ","; fspec; ","; compfactor; ","; appname; chr(127); ","; pages; ","; scanflags;
? tab(-10,AG_IMAGE); IMGOP_SELECTSRC; ","; handle; ","; srcname; chr(127);
? tab(-10,AG_IMAGE); IMGOP_TWERR; ","; handle; ","; chr(127);
? tab(-10,AG_IMAGE); IMGOP_CAPTURE; ","; handle; ","; fspec; ","; compfactor; ","; winid; chr(127);
? tab(-10,AG_IMAGE); IMGOP_SAVEAS; ","; handle; ","; fspec; ","; compfactor; chr(127);
For all but IMGOP_INFO, the return info is formatted as:
INPUT status,handle
For IMGOP_HIDE, it is:
INPUT status,handle,owidth,olength,dwidth,dlength,bpp